From 0472e35e776b854f7e2d23cd9d6992ed4b9f71c3 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Mon, 3 Oct 2022 17:44:44 +0200 Subject: [PATCH] Fix up multi-platform container builds Use the `--platform` flag on `FROM` to build with the correct platform. Signed-off-by: SuperQ --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1fd60c1..7b27198 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG ARCH="amd64" ARG OS="linux" -FROM ${ARCH}/alpine:3 +FROM --platform ${OS}/${ARCH} alpine:3 LABEL maintainer="The Prometheus Authors " RUN apk add smartmontools