leezhuuu commited on
Commit
a6ea6ae
1 Parent(s): a95c1b1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # 设置工作目录
4
+ WORKDIR /app
5
+
6
+ # 复制项目文件
7
+ COPY . /app
8
+
9
+ # 安装依赖
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # 下载模型 (由于模型很大,建议使用 Git LFS)
13
+ RUN git lfs install
14
+ RUN git clone https://huggingface.co/THUDM/glm-4-Voice-decode
15
+
16
+ # 暴露端口
17
+ EXPOSE 8888
18
+
19
+ # 启动命令
20
+ CMD ["python", "web_demo.py"]