Spaces:
Sleeping
Sleeping
File size: 587 Bytes
8350831 b4419c3 8350831 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 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"]
|