tileserver-gl/docker-entrypoint_light.sh
zstadler 34a0eca524 Simplify signal handling
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.
2023-02-18 08:52:29 -05:00

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 "$@"