diff --git a/Dockerfile.unix b/Dockerfile.unix index 28d6cf20..79cc7138 100644 --- a/Dockerfile.unix +++ b/Dockerfile.unix @@ -35,9 +35,8 @@ RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \ /home/www-data \ /app \ ;fi -USER www-data -RUN mkdir /home/www-data/nodes +RUN mkdir -p /home/www-data/nodes RUN cp /app/config.ini /home/www-data/config.ini # thanks to github.com/phusion diff --git a/bootstrap.sh b/bootstrap.sh index 57406cac..948fcc6f 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,9 +2,9 @@ SDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -GROUP_ID=$(id -g ${USER}) # for mac users if [[ $(uname) == "Darwin" ]]; then GROUP_ID=200 fi -docker build --no-cache --build-arg USER_ID=$(id -u ${USER}) --build-arg GROUP_ID=${GROUP_ID} -f Dockerfile.unix -t dune $SDIR + +docker build --no-cache --build-arg USER_ID=0 --build-arg GROUP_ID=0 -f Dockerfile.unix -t dune $SDIR \ No newline at end of file