add ca-certificates to docker image
This commit is contained in:
parent
01313a38f7
commit
d87c5f6000
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue