tileserver-gl/docker-entrypoint.sh
a14stoner 205e0af730 Update docker-entrypoint.sh
fix error:

what(): Failed to open X display

by deleting the .X99-lock file at the start of the containe
2023-03-19 11:01:51 -04:00

10 lines
216 B
Bash
Executable file

#!/bin/sh
if ! which -- "${1}"; then
# first arg is not an executable
rm /tmp/.X99-lock -f > /dev/null || ``
export DISPLAY=:99
Xvfb "${DISPLAY}" -nolisten unix &
exec node /usr/src/app/ "$@"
fi
exec "$@"