Spaces:
Sleeping
Sleeping
File size: 588 Bytes
7d6b687 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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
|