Skip to content

Commit 1ad910e

Browse files
authored
fix(docker): Use distroless instead of scratch (#3111)
By changing our base to distroless/base, we make sure that our image has the correct SSL/TLS root certificates.
1 parent 8a58933 commit 1ad910e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV VERSION=$version
1313
RUN go run scripts/release.go -docker
1414

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

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

0 commit comments

Comments
 (0)