From 86dc8214635696fd421828096a996619986f4054 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 13 Apr 2024 16:25:16 +0800 Subject: [PATCH] ui: Force using linux/amd64 when using docker 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 4cb3e7787f..7ff76fd982 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)