#!/bin/bash
set -e
rm -f /tmp/.X99-lock /tmp/.X11-unix/X99
Xvfb :99 -screen 0 1920x1080x24 -ac +extension GLX +render -noreset &
XVFB_PID=$!
sleep 2
trap "kill $XVFB_PID 2>/dev/null || true" EXIT
exec python3 /app/worker.py

