Skip to content

Commit

Permalink
add ca-certificates to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Apr 25, 2021
1 parent 01313a3 commit d87c5f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d87c5f6

Please sign in to comment.