File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
docker/rootfs/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ if [ "$DEVELOPMENT" == "true" ]; then
11
11
cd /app || exit 1
12
12
# If yarn install fails: add --verbose --network-concurrency 1
13
13
s6-setuidgid npmuser yarn install
14
- exec s6-setuidgid npmuser node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js
14
+ exec s6-setuidgid npmuser bash -c 'export HOME=/tmp/npmuserhome; node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js'
15
15
else
16
16
cd /app || exit 1
17
17
while :
18
18
do
19
- s6-setuidgid npmuser node --abort_on_uncaught_exception --max_old_space_size=250 index.js
19
+ s6-setuidgid npmuser bash -c 'export HOME=/tmp/npmuserhome; node --abort_on_uncaught_exception --max_old_space_size=250 index.js'
20
20
sleep 1
21
21
done
22
22
fi
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ PGID=${PGID:-911}
10
10
log_info ' Creating npmuser ...'
11
11
12
12
groupmod -g 1000 users || exit 1
13
- useradd -u " ${PUID} " -U -d /data -s /bin/false npmuser || exit 1
13
+ useradd -u " ${PUID} " -U -d /tmp/npmuserhome -s /bin/false npmuser || exit 1
14
14
usermod -G users npmuser || exit 1
15
15
groupmod -o -g " $PGID " npmuser || exit 1
16
16
# Home for npmuser
You can’t perform that action at this time.
0 commit comments