FROM python:3.11-slim-bullseye RUN apt-get update && apt-get install -y libsdl2-2.0-0 libfreetype6 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . ENV SDL_VIDEODRIVER=dummy EXPOSE 7860 CMD ["python", "app.py"]