tianlong12 commited on
Commit
774e190
·
verified ·
1 Parent(s): a3a7315

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -16
Dockerfile CHANGED
@@ -1,20 +1,9 @@
1
- # 使用官方 Node.js 运行时作为父镜像
2
- FROM node:16-slim
3
 
4
- # 安装 git
5
- RUN apt-get update && apt-get install -y git
6
 
7
- # 设置工作目录
8
- WORKDIR /app
9
-
10
- # 从 GitHub 克隆仓库
11
- RUN git clone https://github.com/gyxzhao/notdiamond2api.git .
12
-
13
- # 安装依赖
14
- RUN npm install node-fetch@2
15
-
16
- # 暴露端口
17
  EXPOSE 7860
18
 
19
- # 运行应用
20
- CMD ["node", "workers.js"]
 
1
+ # 使用指定的基础镜像
2
+ FROM fjiabinc/notdiamond2api
3
 
 
 
4
 
5
+ # 暴露端口 3000
 
 
 
 
 
 
 
 
 
6
  EXPOSE 7860
7
 
8
+ # 启动命令
9
+ CMD ["python", "app.py"]