Update Dockerfile
Browse files112434567811910113 unmodified lines151617211819202521222823# Use a Python base with high compatibilityFROM python:3.10-slim
# Install system dependencies for Chromium, Xvfb, and OpenGL (for game rendering)RUN apt-get update && apt-get install -y \ wget gnupg unzip xvfb libgl1-mesa-dri libglapi-mesa libosmesa6 \ libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 \ chromium chromium-driver \ && rm -rf /var/lib/apt/lists/*
# Create a non-root user for Hugging Face SpacesRUN useradd -m -u 1000 userUSER userENV HOME=/home/user \3 unmodified lines
WORKDIR $HOME/app
# Install Python requirementsCOPY --chown=user requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the applicationCOPY --chown=user . .
# Launch: Start Xvfb (Virtual Screen) then the Python AppCMD ["sh", "-c", "Xvfb :99 -ac -screen 0 1280x720x24 & python app.py"]Dockerfile-6