1
0
mirror of https://github.com/prometheus/mysqld_exporter.git synced 2025-04-18 09:24:02 +03:00

Fix Dockerfile

Use the correct busybox arch image so that docker-manifest picks up the
correct arch.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2021-03-12 12:18:23 +01:00
parent 9a43c02fa1
commit 741dcfd180
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1

View File

@ -1,12 +1,12 @@
ARG ARCH="amd64"
ARG OS="linux"
FROM quay.io/prometheus/busybox:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
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}/mysqld_exporter /bin/mysqld_exporter
USER nobody
EXPOSE 9104
USER nobody
ENTRYPOINT [ "/bin/mysqld_exporter" ]