From dfcec0468061e5c3d5c0afcf7725ef2e40ccc3ff Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Wed, 20 Oct 2021 09:08:56 +0300 Subject: [PATCH] add missing CA certificates to the Docker image --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 690c307..cbaf092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]