Skip to content

Commit

Permalink
copy the ca-certificate.crt into scratch container
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocandela committed Dec 19, 2022
1 parent c98b888 commit 6d2500d
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 @@ -29,6 +29,8 @@ RUN cp /build/main .
# Build a small image
FROM scratch

# copy the ca-certificate.crt from the builder stage
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /dist/main /

ENTRYPOINT ["/main"]

0 comments on commit 6d2500d

Please sign in to comment.