Skip to content

Commit

Permalink
Try distroless docker
Browse files Browse the repository at this point in the history
which is potentially smaller?
  • Loading branch information
bumi committed Aug 27, 2023
1 parent 1b009b4 commit 929ad8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ COPY . .
RUN go build -o main

# Start a new, final image to reduce size.
FROM alpine as final

FROM gcr.io/distroless/static-debian11

USER small-user:small-user

# Copy the binaries and entrypoint from the builder image.
COPY --from=builder /build/main /bin/
Expand Down

0 comments on commit 929ad8b

Please sign in to comment.