mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 18:08:48 -07:00
fix(docker-build): start main process with exec (#1210)
* Use exec * Appl shellcheck fixes * Close with newline
This commit is contained in:
parent
6974d4068b
commit
16b763e086
@ -1,3 +1,4 @@
|
||||
#! /bin/sh
|
||||
# npm run typeorm migration:run
|
||||
# npm run start:prod
|
||||
node dist/main.js
|
||||
exec node dist/main.js
|
||||
|
@ -1 +1,2 @@
|
||||
node dist/apps/microservices/apps/microservices/src/main
|
||||
#! /bin/sh
|
||||
exec node dist/apps/microservices/apps/microservices/src/main
|
||||
|
@ -1 +1,2 @@
|
||||
node dist/apps/immich/apps/immich/src/main
|
||||
#! /bin/sh
|
||||
exec node dist/apps/immich/apps/immich/src/main
|
||||
|
@ -1,5 +1,6 @@
|
||||
if [ `id -u` -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
exec setpriv --reuid $PUID --regid $PGID --clear-groups node /usr/src/app/build/index.js
|
||||
#! /bin/sh
|
||||
if [ "$(id -u)" -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups node /usr/src/app/build/index.js
|
||||
else
|
||||
node /usr/src/app/build/index.js
|
||||
fi
|
||||
exec node /usr/src/app/build/index.js
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user