File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ RUN chmod -R 755 scripts
4545RUN /staging/scripts/1-image-build.sh
4646
4747# set to the non-root user
48- USER dev-user
48+ USER 1000:1000
4949
5050WORKDIR /data
5151
Original file line number Diff line number Diff line change 44# turn on bash logging, exit on error
55set -ex
66
7- # create a non-root user
8- useradd -m -d /data/home dev-user
7+ # # create a non-root user. Not needed for node image
8+ # useradd -m -d /data/home dev-user
99
1010# set the default shell to the chosen shell
11- usermod --shell ${SHELL} dev-user
11+ usermod --shell ${SHELL} 1000
1212
1313# Add the ability to set file permissions on /data to the non-privileged user
1414echo " ALL ALL=NOPASSWD: /bin/chown -R 1000\:1000 /data" >> /etc/sudoers
You can’t perform that action at this time.
0 commit comments