14 lines
412 B
Docker
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" ]
|