iouoracle commited on
Commit
52e72f8
·
verified ·
1 Parent(s): 8cb23f6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -102,5 +102,11 @@ COPY chatgpt.svg app/icons/chatgpt.svg
102
  RUN npm i
103
  RUN npm run build
104
 
 
 
 
105
  EXPOSE 3000
106
- CMD ["npm", "run", "start"]
 
 
 
 
102
  RUN npm i
103
  RUN npm run build
104
 
105
+ # 安装 cloudflared
106
+ COPY --from=cloudflare/cloudflared:latest /usr/local/bin/cloudflared /usr/local/bin/cloudflared
107
+
108
  EXPOSE 3000
109
+
110
+ # 使用shell形式的ENTRYPOINT来运行多个命令
111
+ ENTRYPOINT cloudflared tunnel --no-autoupdate run --token $CF_TOKEN & \
112
+ npm run start