fix Dockerfile for multi-arch

Signed-off-by: Julien Francoz <julien-github@francoz.net>
This commit is contained in:
Julien Francoz 2023-08-17 22:58:22 +02:00
parent 75c76b363f
commit 380f1e96e2
2 changed files with 4 additions and 4 deletions

View File

@ -1,12 +1,12 @@
ARG ARCH="amd64"
ARG OS="linux"
FROM alpine:3
FROM --platform=${OS}/${ARCH} alpine:3
ARG ARCH="amd64"
ARG OS="linux"
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
RUN apk add smartmontools
ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
EXPOSE 9633

View File

@ -12,7 +12,7 @@
# limitations under the License.
# Needs to be defined before including Makefile.common to auto-generate targets
DOCKER_ARCHS ?= amd64
DOCKER_ARCHS ?= amd64 arm64
DOCKER_REPO ?= prometheuscommunity
include Makefile.common