mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-21 15:00:59 +00:00
258c8c0b2c
When in k8s, container has `runAsNonRoot` policy and image has non-numeric user (nobody), then the deployment will fail as it cannot verify user is non-root. Closes #406 Signed-off-by: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
13 lines
439 B
Docker
13 lines
439 B
Docker
ARG ARCH="amd64"
|
|
ARG OS="linux"
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
|
|
|
ARG ARCH="amd64"
|
|
ARG OS="linux"
|
|
COPY .build/${OS}-${ARCH}/statsd_exporter /bin/statsd_exporter
|
|
|
|
USER 65534
|
|
EXPOSE 9102 9125 9125/udp
|
|
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
|
ENTRYPOINT [ "/bin/statsd_exporter" ]
|