Skip to content

Commit

Permalink
fix ssl certs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicko170 committed Aug 16, 2024
1 parent 92bd7f2 commit 944f55d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM golang:alpine as builder
WORKDIR /app
RUN apk update && apk upgrade && apk add --no-cache ca-certificates
RUN update-ca-certificates

FROM scratch

COPY snmp_exporter /
COPY snmp.yml /snmp.yml
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

EXPOSE 9116
ENTRYPOINT [ "/snmp_exporter" ]
Expand Down

0 comments on commit 944f55d

Please sign in to comment.