forked from mirrors/statsd_exporter
Merge pull request #202 from prometheus/superq/docker_user
Don't run docker container as root
This commit is contained in:
commit
0766e70e43
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
|
||||
|
||||
USER nobody
|
||||
EXPOSE 9102 9125 9125/udp
|
||||
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
||||
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
||||
|
|
Loading…
Reference in a new issue