From c834a991c6ef8ec6f517dbe64c3581874cd998b2 Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Tue, 5 Mar 2019 16:35:03 -0600 Subject: [PATCH] set ELM_HOME for the elm-env container The ELM_HOME variable needs to be set to the mounted volume directory when building to prevent permissions errors caused by using root as the default home dir. Signed-off-by: Paul Gier --- ui/app/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/Makefile b/ui/app/Makefile index f462c2ef..d8b44819 100644 --- a/ui/app/Makefile +++ b/ui/app/Makefile @@ -3,7 +3,7 @@ ELM_FILES = $(shell find src -iname *.elm) DOCKER_IMG := elm-env DOCKER_RUN_CURRENT_USER := docker run --user=$(shell id -u $(USER)):$(shell id -g $(USER)) -DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app $(DOCKER_IMG) +DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app -e "ELM_HOME=/app" $(DOCKER_IMG) # macOS requires mktemp template to be at the end of the filename. TEMPFILE := $(shell mktemp ./elm-XXXXXXXXXX) # --output flag for elm make must end in .js or .html.