
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.
9 lines
181 B
Bash
Executable file
9 lines
181 B
Bash
Executable file
#!/bin/sh
|
|
if ! which -- "${1}"; then
|
|
# first arg is not an executable
|
|
export DISPLAY=:99
|
|
Xvfb "${DISPLAY}" -nolisten unix &
|
|
exec node /usr/src/app/ -p 80 "$@"
|
|
fi
|
|
|
|
exec "$@"
|