From 205e0af730c40f23b5b7ce2e2611c459906bc94c Mon Sep 17 00:00:00 2001 From: a14stoner <59861665+a14stoner@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:50:58 +0100 Subject: [PATCH] Update docker-entrypoint.sh fix error: what(): Failed to open X display by deleting the .X99-lock file at the start of the containe --- docker-entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7c0b1e3..9b28866 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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/ "$@"