File size: 592 Bytes
ed8503f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
git \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/python3.10 /usr/bin/python
WORKDIR /app
COPY . /app
RUN pip install --upgrade pip setuptools wheel && \
pip install .
RUN chmod +x /app/entrypoint.sh
EXPOSE 8888
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["python", "examples/web_demo.py", "--model_path", "/app/ckpt", "--port", "8888"]
|