Skip to content

Commit

Permalink
ui: Force using linux/amd64 when using docker
Browse files Browse the repository at this point in the history
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:
elm/compiler#2283

Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
  • Loading branch information
zecke committed Apr 13, 2024
1 parent cb9724d commit 86dc821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86dc821

Please sign in to comment.