update dockerfile
This commit is contained in:
parent
3d2bb10e77
commit
a0f338c113
|
@ -1,7 +1,6 @@
|
|||
FROM prom/blackbox-exporter:v0.19.0 as bbe
|
||||
|
||||
FROM alpine:3.14.2
|
||||
EXPOSE 9115
|
||||
|
||||
COPY --from=bbe /bin/blackbox_exporter /bin/blackbox_exporter
|
||||
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 \
|
||||
&& setcap cap_net_raw+ep /bin/blackbox_exporter
|
||||
|
||||
EXPOSE 9115
|
||||
ENTRYPOINT [ "/bin/blackbox_exporter" ]
|
||||
CMD [ "-config.file=/etc/blackbox_exporter/config.yml" ]
|
||||
CMD [ "--config.file=/etc/blackbox_exporter/config.yml" ]
|
Reference in New Issue