statsd_exporter/Dockerfile
Ben Kochie 38df95f440
Don't run docker container as root
Run statsd_exporter as `nobody`.

Signed-off-by: Ben Kochie <superq@gmail.com>
2019-04-17 17:04:19 +02:00

9 lines
342 B
Docker

FROM quay.io/prometheus/busybox:latest
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" ]