isididiidid commited on
Commit
636f66e
·
verified ·
1 Parent(s): bff0e54

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -7,6 +7,10 @@ COPY hf.js /app/hf.js
7
  RUN npm install http-proxy-middleware axios
8
 
9
  ENV HF_PORT=7860
 
 
 
10
  EXPOSE 7860
11
 
12
- CMD ["sh", "-c", "node hf.js & npm run start"]
 
 
7
  RUN npm install http-proxy-middleware axios
8
 
9
  ENV HF_PORT=7860
10
+ # 代理池环境变量,支持多个代理,用逗号分隔
11
+ ENV PROXY=""
12
+
13
  EXPOSE 7860
14
 
15
+ CMD ["node", "hf.js"]
16
+