Update docker-entrypoint.sh

fix error:

what(): Failed to open X display

by deleting the .X99-lock file at the start of the containe
This commit is contained in:
a14stoner 2023-03-10 10:50:58 +01:00 committed by Andrew Calcutt
parent 5aaa43a70c
commit 205e0af730

View file

@ -1,6 +1,7 @@
#!/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/ "$@"