hd-video / Dockerfile
Bot
Restore optimized PyTorch-CPU backend with 16 concurrent workers and deep diagnostic logs streaming
6f8e023
Raw
History Blame Contribute Delete
531 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
# Install runtime dependencies and FFmpeg (CMake/Build removed to optimize container rebuild time)
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1 \
libglib2.0-0 \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]