Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies (fixed for Debian Trixie) | |
| RUN apt-get update && apt-get install -y \ | |
| libglx-mesa0 \ | |
| libgl1-mesa-dri \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgomp1 \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Upgrade pip, setuptools, wheel for better dependency resolution | |
| RUN pip install --upgrade pip setuptools wheel | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Create data directory for model cache | |
| RUN mkdir -p /data | |
| ENV HF_HOME=/data | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-c", "gunicorn_conf.py", "app:app"] |