FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04 ENV DEBIAN_FRONTEND=noninteractive \ PATH=/opt/venv/bin:$PATH \ PYTHONUNBUFFERED=1 RUN apt-get update \ && apt-get install -y --no-install-recommends ffmpeg python3 python3-venv ca-certificates \ && rm -rf /var/lib/apt/lists/* \ && python3 -m venv /opt/venv WORKDIR /runtime COPY requirements.txt /runtime/requirements.txt RUN python3 -m pip install --no-cache-dir --upgrade pip \ && python3 -m pip install --no-cache-dir -r /runtime/requirements.txt EXPOSE 7860 CMD python3 -m http.server 7860 --bind 0.0.0.0