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:
parent
5b99b12aca
commit
530bb3f6b3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue