1
0
Fork 0
This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
blackbox-exporter-tweak/Dockerfile

14 lines
412 B
Docker
Raw Permalink Normal View History

2022-08-01 18:33:58 +00:00
FROM prom/blackbox-exporter:v0.21.1 as bbe
2021-09-11 01:13:12 +00:00
2022-08-01 18:33:58 +00:00
FROM alpine:3
2021-09-11 01:13:12 +00:00
COPY --from=bbe /bin/blackbox_exporter /bin/blackbox_exporter
COPY --from=bbe /etc/blackbox_exporter/config.yml /etc/blackbox_exporter/config.yml
RUN apk add --no-cache libcap \
&& setcap cap_net_raw+ep /bin/blackbox_exporter
2021-09-11 01:25:35 +00:00
EXPOSE 9115
2021-09-11 01:13:12 +00:00
ENTRYPOINT [ "/bin/blackbox_exporter" ]
2022-08-01 18:33:58 +00:00
CMD [ "--config.file=/etc/blackbox_exporter/config.yml" ]