From 218fa0fe63ee405b8d2f8dee188592e61b3e96ae Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Fri, 12 Mar 2021 12:14:28 +0100 Subject: [PATCH] Fix Dockerfile Use the correct busybox arch image so that docker-manifest picks up the correct arch. Fixes: https://github.com/prometheus/haproxy_exporter/issues/209 Signed-off-by: Ben Kochie --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bfd269..bd8f318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ ARG ARCH="amd64" ARG OS="linux" -FROM quay.io/prometheus/busybox:latest +FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest LABEL maintainer="The Prometheus Authors " ARG ARCH="amd64" ARG OS="linux" COPY .build/${OS}-${ARCH}/haproxy_exporter /bin/haproxy_exporter -USER nobody -ENTRYPOINT ["/bin/haproxy_exporter"] -EXPOSE 9101 +EXPOSE 9101 +USER nobody +ENTRYPOINT [ "/bin/haproxy_exporter" ]