diff --git a/Makefile b/Makefile index cb78d6a..7df6b70 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -default: build +.PHONY: build build: sudo docker build . 2>&1 | tee -a build.log diff --git a/build/run.sh b/build/run.sh index 775aca8..ff98cb4 100644 --- a/build/run.sh +++ b/build/run.sh @@ -34,4 +34,9 @@ pip3 install black # install prettier # install vim-go -sudo -u $USERNAME_TO_ADD bash ./runuser.sh +sudo \ + --preserve-env=USERNAME_TO_ADD \ + --set-home \ + --non-interactive \ + -u $USERNAME_TO_ADD \ + bash ./runuser.sh