From 73e6ad35bf161d4403fd4aca07bd5618e97272aa Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Wed, 23 Aug 2023 15:32:50 +0200 Subject: [PATCH] Fix architecture in dockerfile (#1812) Fixing the architecture in the dockerfile forces M1/M2 macs to run the docker-file in emulated mode. This is required in order to reproduce the linux builds on such a machine. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d4a85db40..1291774c9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ # # The docker image. To update, run `docker pull ubuntu` locally, and update the # sha256:... accordingly. -FROM ubuntu@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 as deps +FROM --platform=linux/amd64 ubuntu@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 as deps ENV TZ=UTC