fix dev build

This commit is contained in:
routerino 2025-03-15 13:01:29 +11:00 committed by GitHub
parent 722eaa64ed
commit f3c4a6afbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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