From 895ecb1251656ec5c5f566fff8079dc54e4b4484 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Tue, 1 Jan 2019 23:05:26 +0100 Subject: [PATCH] run build with non-root user --- wizard.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wizard.sh b/wizard.sh index 52411120..91d206f6 100755 --- a/wizard.sh +++ b/wizard.sh @@ -84,8 +84,10 @@ buildAssets () { rm -rf dist/* fi; + set +e yarn install yarn build + set -e cd $REPO/http rice embed-go @@ -187,11 +189,13 @@ build () { fi $(command -v winpty) docker run --rm -it \ + -u "$(id -u)" \ -v /$(pwd):/src:z \ -w //src \ -e COMMIT_SHA=$COMMIT_SHA \ + -e XDG_CACHE_HOME="//tmp/.cache" \ filebrowser/dev \ - sh -c "dos2unix wizard.sh && ./wizard.sh -b" + sh -c "./wizard.sh -b" else buildAssets