updating dockerfiles and minor things

This commit is contained in:
2024-09-22 11:50:48 +02:00
parent 87d679464a
commit cf5d311731
6 changed files with 18 additions and 10 deletions

View File

@@ -7,13 +7,13 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
FROM gcr.io/distroless/base-debian11
RUN CGO_ENABLED=1 GOOS=linux go build -o main .
FROM ubuntu:latest
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/dev.env .
EXPOSE 80