Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(docker): Use distroless instead of scratch
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
commit a1e79657e3be45cf968cf7a8865ebb6a5896f5e8
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"]