
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.
7 lines
123 B
Bash
7 lines
123 B
Bash
#!/bin/sh
|
|
if ! which -- "${1}"; then
|
|
# first arg is not an executable
|
|
exec node /usr/src/app/ -p 80 "$@"
|
|
fi
|
|
|
|
exec "$@"
|