Skip to content

Commit

Permalink
Try debian:stable-slim instead of distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Sep 21, 2024
1 parent acf508e commit 71d3e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ RUN --mount=target=. \
go build -ldflags="-w -s" -o /app/service ./cmd/main.go

# Create the final image
FROM gcr.io/distroless/static:nonroot AS prd
#FROM gcr.io/distroless/static:nonroot AS prd
FROM debian:stable-slim AS prd

# Copy the built binary
COPY --link --from=build /app/service /service
Expand Down

0 comments on commit 71d3e6b

Please sign in to comment.