From 530bb3f6b3a26ad4d26b338f0bb9bdb6bfa91ed0 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Fri, 26 Apr 2024 00:39:05 +0800 Subject: [PATCH] ui: Force using linux/amd64 when using docker (#3807) The elm npm package doesn't support linux/arm64. The easiest option is to force docker to run this as a AMD64 container. Upstream issue: https://github.com/elm/compiler/issues/2283 Signed-off-by: Holger Hans Peter Freyther --- ui/app/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/Makefile b/ui/app/Makefile index 4cb3e778..7ff76fd9 100644 --- a/ui/app/Makefile +++ b/ui/app/Makefile @@ -16,7 +16,7 @@ all: script.js test elm-env: @(if [ "$(NO_DOCKER)" != "true" ] ; then \ echo ">> building elm-env docker image"; \ - docker build -t $(DOCKER_IMG) ../. > /dev/null; \ + docker build --platform=linux/amd64 -t $(DOCKER_IMG) ../. > /dev/null; \ fi; ) format: elm-env $(ELM_FILES)