Skip to content

Commit 48e4495

Browse files
committed
dockerfile: ensure ca certificates are installed
1 parent 7538147 commit 48e4495

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copy the CA certificates from a builder image
2+
FROM alpine:latest AS builder
3+
RUN apk update \
4+
&& apk add --no-cache ca-certificates
5+
16
FROM scratch
7+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
28
COPY prometheus-cve-exporter /usr/bin/prometheus-cve-exporter
39
ENTRYPOINT ["/usr/bin/prometheus-cve-exporter"]

0 commit comments

Comments
 (0)