From 031f580be60155cf9d4787fda3ee3690efecc254 Mon Sep 17 00:00:00 2001 From: Sergey Kibish Date: Sun, 2 May 2021 16:09:09 +0300 Subject: [PATCH] add ssl certificates for Docker build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 814c6f1..71aebdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ddns . # Now create a new stage and only copy the binary we need (keeps the container small) FROM scratch +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /app/ddns / ENTRYPOINT ["/ddns"]