fix(docker-build): start main process with exec (#1210)

* Use exec

* Appl shellcheck fixes

* Close with newline
This commit is contained in:
bt90 2022-12-29 21:49:02 +01:00 committed by GitHub
parent 6974d4068b
commit 16b763e086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,4 @@
#! /bin/sh
# npm run typeorm migration:run # npm run typeorm migration:run
# npm run start:prod # npm run start:prod
node dist/main.js exec node dist/main.js

View File

@ -1 +1,2 @@
node dist/apps/microservices/apps/microservices/src/main #! /bin/sh
exec node dist/apps/microservices/apps/microservices/src/main

View File

@ -1 +1,2 @@
node dist/apps/immich/apps/immich/src/main #! /bin/sh
exec node dist/apps/immich/apps/immich/src/main

View File

@ -1,5 +1,6 @@
if [ `id -u` -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then #! /bin/sh
exec setpriv --reuid $PUID --regid $PGID --clear-groups node /usr/src/app/build/index.js 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 else
node /usr/src/app/build/index.js exec node /usr/src/app/build/index.js
fi fi