mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-26 09:11:01 +00:00
Don't run docker container as root
Run statsd_exporter as `nobody`. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
f0feef950b
commit
38df95f440
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com
|
||||||
|
|
||||||
COPY statsd_exporter /bin/statsd_exporter
|
COPY statsd_exporter /bin/statsd_exporter
|
||||||
|
|
||||||
|
USER nobody
|
||||||
EXPOSE 9102 9125 9125/udp
|
EXPOSE 9102 9125 9125/udp
|
||||||
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
||||||
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
||||||
|
|
Loading…
Reference in a new issue