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 <holger@freyther.de>
This commit is contained in:
Holger Freyther 2024-04-26 00:39:05 +08:00 committed by GitHub
parent 5b99b12aca
commit 530bb3f6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ all: script.js test
elm-env: elm-env:
@(if [ "$(NO_DOCKER)" != "true" ] ; then \ @(if [ "$(NO_DOCKER)" != "true" ] ; then \
echo ">> building elm-env docker image"; \ echo ">> building elm-env docker image"; \
docker build -t $(DOCKER_IMG) ../. > /dev/null; \ docker build --platform=linux/amd64 -t $(DOCKER_IMG) ../. > /dev/null; \
fi; ) fi; )
format: elm-env $(ELM_FILES) format: elm-env $(ELM_FILES)