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