From 74ddfe901a94a4ab841277474f5c710841a3dbf7 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 1 Feb 2022 13:34:16 +0100 Subject: [PATCH] Specify docker platform args for build and run commands Signed-off-by: Evan Lezar --- docker/docker.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/docker.mk b/docker/docker.mk index 3a33034c..9a29677a 100644 --- a/docker/docker.mk +++ b/docker/docker.mk @@ -122,6 +122,7 @@ docker-build-%: docker pull --platform=linux/$(ARCH) $(BASEIMAGE) DOCKER_BUILDKIT=1 \ $(DOCKER) build \ + --platform=linux/$(ARCH) \ --progress=plain \ --build-arg BASEIMAGE="$(BASEIMAGE)" \ --build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \ @@ -131,6 +132,7 @@ docker-build-%: --tag $(BUILDIMAGE) \ --file $(DOCKERFILE) . $(DOCKER) run \ + --platform=linux/$(ARCH) \ -e DISTRIB \ -e SECTION \ -v $(ARTIFACTS_DIR):/dist \