neuroama commited on
Commit
e6ccae6
·
1 Parent(s): ff00577

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,26 +1,17 @@
1
-
2
  # 使用官方 PyTorch 镜像作为基础镜像
3
  FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
4
 
5
  # 安装 Git
6
  RUN apt-get update && apt-get install -y git
7
- RUN apt-get install -y pip
8
 
9
  # 克隆 Transformers 仓库
10
  RUN git clone https://github.com/huggingface/transformers.git /workspace/transformers
11
 
12
- RUN apt-get update && apt-get install -y git-lfs && git lfs install
13
-
14
- RUN git clone https://huggingface.co/spaces/neuroama/so-vits-svc
15
-
16
  # 设置工作目录
17
- WORKDIR /workspace/so-vits-svc
18
-
19
- COPY so-vits-svc/requirements.txt .
20
-
21
 
22
  # 安装 Transformers 依赖
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # 定义容器启动时运行的命令
26
- CMD ["python", "app.py"]
 
 
1
  # 使用官方 PyTorch 镜像作为基础镜像
2
  FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
3
 
4
  # 安装 Git
5
  RUN apt-get update && apt-get install -y git
 
6
 
7
  # 克隆 Transformers 仓库
8
  RUN git clone https://github.com/huggingface/transformers.git /workspace/transformers
9
 
 
 
 
 
10
  # 设置工作目录
11
+ WORKDIR /workspace/transformers
 
 
 
12
 
13
  # 安装 Transformers 依赖
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # 定义容器启动时运行的命令
17
+ CMD ["bash"]