1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2024-11-27 08:31:02 +02:00
ssl_exporter/Dockerfile

18 lines
404 B
Docker
Raw Normal View History

2021-12-23 14:29:24 +02:00
FROM alpine:3.15 as build
RUN apk --update add ca-certificates
RUN echo "ssl:*:100:ssl" > /tmp/group && \
echo "ssl:*:100:100::/:/ssl_exporter" > /tmp/passwd
2019-07-05 15:44:06 +02:00
FROM scratch
2021-12-23 14:29:24 +02:00
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /tmp/group \
/tmp/passwd \
/etc/
2021-12-23 14:29:24 +02:00
COPY ssl_exporter /
2019-07-05 15:44:06 +02:00
USER ssl:ssl
EXPOSE 9219/tcp
ENTRYPOINT ["/ssl_exporter"]