parent
5aaa43a70c
commit
82c8e73a90
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
|||
if ! which -- "${1}"; then
|
||||
# first arg is not an executable
|
||||
export DISPLAY=:99
|
||||
Xvfb "${DISPLAY}" -nolisten unix &
|
||||
# Launch Xvfb if needed
|
||||
xdpyinfo --display "${DISPLAY}" >/dev/null 2>&1 || Xvfb "${DISPLAY}" -nolisten unix &
|
||||
exec node /usr/src/app/ "$@"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue