0.1.0 - First pass at the app
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
# Build stage
|
||||
FROM golang:alpine AS builder
|
||||
RUN apk add --no-cache build-base
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o sprintpadawan main.go
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates tzdata
|
||||
WORKDIR /app
|
||||
|
||||
ENV ROOT_DIR=/data
|
||||
RUN mkdir -p /data
|
||||
|
||||
COPY --from=builder /app/sprintpadawan .
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["./sprintpadawan"]
|
||||
Reference in New Issue
Block a user