From f242cc17609af10debbbbe9fa9a4f19b5be76d13 Mon Sep 17 00:00:00 2001 From: zstadler Date: Sun, 19 Feb 2023 06:51:48 +0200 Subject: [PATCH] Simplify signal handling (#771) Avoid implementing a complex signal relaying mechanism in `docker-entrypoint*.sh` Instead, the shell performs `exec node ...` and the `node` process receives the signals directly. Related to #560, #575, which were my initial implemetation. --- docker-entrypoint.sh | 2 +- docker-entrypoint_light.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index d655bd3a1..7c0b1e38c 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -3,7 +3,7 @@ if ! which -- "${1}"; then # first arg is not an executable export DISPLAY=:99 Xvfb "${DISPLAY}" -nolisten unix & - exec node /usr/src/app/ -p 80 "$@" + exec node /usr/src/app/ "$@" fi exec "$@" diff --git a/docker-entrypoint_light.sh b/docker-entrypoint_light.sh index 54d8ce54b..ae37176c9 100644 --- a/docker-entrypoint_light.sh +++ b/docker-entrypoint_light.sh @@ -1,7 +1,7 @@ #!/bin/sh if ! which -- "${1}"; then # first arg is not an executable - exec node /usr/src/app/ -p 80 "$@" + exec node /usr/src/app/ "$@" fi exec "$@"