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

FROM prom/blackbox-exporter:v0.21.1 as bbe
FROM alpine:3
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
EXPOSE 9115
ENTRYPOINT [ "/bin/blackbox_exporter" ]
CMD [ "--config.file=/etc/blackbox_exporter/config.yml" ]