Spaces:
Sleeping
Sleeping
| # Use lightweight Python image with CUDA support (if needed) | |
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/* | |
| # Copy app | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Expose Flask port | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |