yxmiler commited on
Commit
4899dbe
·
verified ·
1 Parent(s): 737e4ed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -6,6 +6,10 @@ RUN npm ci --only=production
6
 
7
  COPY . .
8
 
 
 
 
 
9
  EXPOSE 7860
10
 
11
  CMD ["npm", "start"]
 
6
 
7
  COPY . .
8
 
9
+ # 设置环境变量
10
+ ENV PORT=7860
11
+
12
+ # 暴露端口
13
  EXPOSE 7860
14
 
15
  CMD ["npm", "start"]