Skip to content

Commit

Permalink
add missing CA certificates to the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Oct 20, 2021
1 parent 8defd1c commit dfcec04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build TARGETOS=${TARGETOS} TARGETA

# final image
FROM scratch
# copy certificates
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# copy the binary to the production image from the builder stage.
COPY --from=builder /go/src/app/.bin/secrets-init /secrets-init
ENTRYPOINT ["/secrets-init"]
Expand Down

0 comments on commit dfcec04

Please sign in to comment.