neuroama commited on
Commit
4897725
·
1 Parent(s): c8d1f90

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
8
+ # 克隆 Transformers 仓库
9
+ RUN git clone https://github.com/huggingface/transformers.git /workspace/transformers
10
+ RUN git lfs install
11
+ RUN git clone https://huggingface.co/spaces/neuroama/so-vits-svc
12
+
13
+ # 设置工作目录
14
+ WORKDIR /workspace/transformers
15
+
16
+ # 安装 Transformers 依赖
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # 定义容器启动时运行的命令
20
+ CMD ["bash"]