Skip to content

Commit

Permalink
Merge pull request #202 from prometheus/superq/docker_user
Browse files Browse the repository at this point in the history
Don't run docker container as root
  • Loading branch information
Matthias Rampke authored Apr 17, 2019
2 parents f0feef9 + 38df95f commit 0766e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL maintainer="The Prometheus Authors <[email protected]

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" ]

0 comments on commit 0766e70

Please sign in to comment.