Skip to content

Commit dfcec04

Browse files
committed
add missing CA certificates to the Docker image
1 parent 8defd1c commit dfcec04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build TARGETOS=${TARGETOS} TARGETA
2222

2323
# final image
2424
FROM scratch
25+
# copy certificates
26+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2527
# copy the binary to the production image from the builder stage.
2628
COPY --from=builder /go/src/app/.bin/secrets-init /secrets-init
2729
ENTRYPOINT ["/secrets-init"]

0 commit comments

Comments
 (0)