diff --git a/docker/development/dockerfile b/docker/development/dockerfile index c4f0b42..7b3dc11 100644 --- a/docker/development/dockerfile +++ b/docker/development/dockerfile @@ -10,7 +10,6 @@ EXPOSE 3000 # System Environment Variables ENV PATH="/opt/vscode:${PATH}" ENV HOME="/data/home" -ENV SHELL="/bin/bash" # User Set Environment Variables # Set to false if you do not want to attempt to pull a repository on first load diff --git a/docker/development/scripts/1-image-build.sh b/docker/development/scripts/1-image-build.sh index ce132d0..b52344a 100644 --- a/docker/development/scripts/1-image-build.sh +++ b/docker/development/scripts/1-image-build.sh @@ -7,8 +7,8 @@ set -ex # # create a non-root user. Not needed for node image # useradd -m -d /data/home dev-user -# set the default shell to the chosen shell -usermod --shell ${SHELL} 1000 +# set new home directory +usermod -d /data/home node # Add the ability to set file permissions on /data to the non-privileged user echo "ALL ALL=NOPASSWD: /bin/chown -R 1000\:1000 /data" >> /etc/sudoers