Skip to content

Commit

Permalink
fix(docker): Use distroless instead of scratch (#3111)
Browse files Browse the repository at this point in the history
By changing our base to distroless/base, we make sure that our image has
the correct SSL/TLS root certificates.
  • Loading branch information
kyleconroy committed Jan 5, 2024
1 parent 8a58933 commit 1ad910e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV VERSION=$version
RUN go run scripts/release.go -docker

# STEP 2: Build a tiny image
FROM scratch
FROM gcr.io/distroless/base-debian12

COPY --from=builder /workspace/sqlc /workspace/sqlc
ENTRYPOINT ["/workspace/sqlc"]

0 comments on commit 1ad910e

Please sign in to comment.