dockertest / Dockerfile
neuroama's picture
Update Dockerfile
04bd6ae
raw
history blame
490 Bytes
# 使用 Hugging Face 的 PyTorch 容器作为基础镜像
FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
# 安装 Git
RUN apt-get update && apt-get install -y git
# 设置工作目录
WORKDIR /workspace
# 克隆 Gradio 示例项目
RUN git clone https://huggingface.co/spaces/neuroama/so-vits-svc
# 安装 Gradio 示例项目依赖
WORKDIR /workspace/so-vits-svc
RUN pip install --no-cache-dir -r requirements.txt
# 设置容器启动时运行的命令
CMD ["python", "app.py"]