1
0
Fork 0
megacode/entrypoint.sh

15 lines
249 B
Bash
Executable file

#!/bin/sh
set -e
export DISPLAY=:99
Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp -ac >/tmp/xvfb.log 2>&1 &
XVFB_PID=$!
cleanup() {
kill "$XVFB_PID" >/dev/null 2>&1 || true
}
trap cleanup EXIT INT TERM
exec /app/.venv/bin/python -u server.py