1
0
Fork 0

update dockerfile
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Massaki Archambault 2021-09-10 21:25:35 -04:00
parent 3d2bb10e77
commit a0f338c113
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,6 @@
FROM prom/blackbox-exporter:v0.19.0 as bbe FROM prom/blackbox-exporter:v0.19.0 as bbe
FROM alpine:3.14.2 FROM alpine:3.14.2
EXPOSE 9115
COPY --from=bbe /bin/blackbox_exporter /bin/blackbox_exporter COPY --from=bbe /bin/blackbox_exporter /bin/blackbox_exporter
COPY --from=bbe /etc/blackbox_exporter/config.yml /etc/blackbox_exporter/config.yml COPY --from=bbe /etc/blackbox_exporter/config.yml /etc/blackbox_exporter/config.yml
@ -9,5 +8,6 @@ COPY --from=bbe /etc/blackbox_exporter/config.yml /etc/blackbox_exporter/config.
RUN apk add --no-cache libcap \ RUN apk add --no-cache libcap \
&& setcap cap_net_raw+ep /bin/blackbox_exporter && setcap cap_net_raw+ep /bin/blackbox_exporter
EXPOSE 9115
ENTRYPOINT [ "/bin/blackbox_exporter" ] ENTRYPOINT [ "/bin/blackbox_exporter" ]
CMD [ "-config.file=/etc/blackbox_exporter/config.yml" ] CMD [ "--config.file=/etc/blackbox_exporter/config.yml" ]