Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Runtime deps: libglib2.0-0 for OpenCV-headless, ffmpeg for video codecs. | |
| # No GL library needed — opencv-python-headless has no libGL dependency. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py index.html ./ | |
| # Writable directory for extracted frames | |
| RUN mkdir -p frames && chmod 777 frames | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |