From d87c5f60005aed938d187454aa1b7b41bcc5d406 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 25 Apr 2021 17:58:19 +0200 Subject: [PATCH] add ca-certificates to docker image --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 65260fa..6307b31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,8 @@ RUN adduser \ "${USER}" ADD . /go/src/github.com/systemli/prometheus-jitsi-meet-exporter -RUN go get -d -v && \ +RUN apk --update add ca-certificates && \ + go get -d -v && \ go mod download && \ go mod verify && \ CGO_ENABLED=0 go build -ldflags="-w -s" -o /prometheus-jitsi-meet-exporter @@ -25,6 +26,7 @@ FROM scratch COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /etc/group /etc/group +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /prometheus-jitsi-meet-exporter /prometheus-jitsi-meet-exporter USER appuser:appuser