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 <superq@gmail.com>
Ben Kochie
3 years ago
0 | 0 | ARG ARCH="amd64" |
1 | 1 | ARG OS="linux" |
2 | FROM quay.io/prometheus/busybox:latest | |
2 | FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest | |
3 | 3 | LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>" |
4 | 4 | |
5 | 5 | ARG ARCH="amd64" |
6 | 6 | ARG OS="linux" |
7 | 7 | COPY .build/${OS}-${ARCH}/haproxy_exporter /bin/haproxy_exporter |
8 | 8 | |
9 | USER nobody | |
10 | ENTRYPOINT ["/bin/haproxy_exporter"] | |
11 | EXPOSE 9101 | |
9 | EXPOSE 9101 | |
10 | USER nobody | |
11 | ENTRYPOINT [ "/bin/haproxy_exporter" ] |