lynn2728 commited on
Commit
835a6ba
·
verified ·
1 Parent(s): 836f1b3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,21 +1,21 @@
1
- # 1. 召唤最新款的 Node.js 运行环境
2
  FROM node:22-alpine
3
 
4
- # 2. 安装去 GitHub 进货的工具
5
  RUN apk add --no-cache git
6
 
7
- # 3. 建立大厨的工作台
8
  WORKDIR /app
9
 
10
- # 4. 把你指定的 su-kaka 大佬的 gcli2api 源码全部偷回来
11
  RUN git clone https://github.com/su-kaka/gcli2api.git .
12
 
13
- # 5. 安装新酒店需要的各种零件
14
  RUN npm install
15
 
16
- # 6. 设定 HF 强制要求的出入口端口
17
  ENV PORT=7860
18
  EXPOSE 7860
19
 
20
- # 7. 点火!开机营业!
21
  CMD ["npm", "start"]
 
1
+ # 1. Base Node.js environment
2
  FROM node:22-alpine
3
 
4
+ # 2. Install git
5
  RUN apk add --no-cache git
6
 
7
+ # 3. Set working directory
8
  WORKDIR /app
9
 
10
+ # 4. Clone the repository
11
  RUN git clone https://github.com/su-kaka/gcli2api.git .
12
 
13
+ # 5. Install dependencies
14
  RUN npm install
15
 
16
+ # 6. Set environment variable and expose port
17
  ENV PORT=7860
18
  EXPOSE 7860
19
 
20
+ # 7. Start the application
21
  CMD ["npm", "start"]