tileserver-gl/docker-entrypoint.sh
zstadler acde7b0a30
Simplify signal handling (#767)
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 22:29:47 -05:00

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