From 6d2500d0f558c053bfa514f88251284aadeaa6a9 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 19 Dec 2022 23:08:21 +0100 Subject: [PATCH] copy the ca-certificate.crt into scratch container --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8ae0f47..8bfea4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file