vidbye commited on
Commit
c884913
·
verified ·
1 Parent(s): d5ca1a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -6,22 +6,21 @@ COPY hf.js /app/hf.js
6
 
7
  RUN npm install http-proxy-middleware axios express morgan
8
 
9
- # 服务端口
10
  ENV HF_PORT=7860
11
 
12
- # 代理配置 - 格式: "http://user:pass@host:port,http://user2:pass2@host2:port2"
13
  ENV PROXY=""
14
 
15
- # 目标服务地址 - 接收转发请求的实际服务
16
  ENV TARGET_URL="http://localhost:3010"
17
 
18
- # 模型列表API端点可选前缀 - /v1/api/v1
19
  ENV API_PATH="/v1"
20
 
21
- # 请求超时时间(毫秒)
22
  ENV TIMEOUT=30000
23
 
24
  EXPOSE 7860
25
 
26
- CMD ["node", "hf.js"]
27
-
 
6
 
7
  RUN npm install http-proxy-middleware axios express morgan
8
 
9
+ # Service port
10
  ENV HF_PORT=7860
11
 
12
+ # Proxy configuration - Format: "http://user:pass@host:port,http://user2:pass2@host2:port2"
13
  ENV PROXY=""
14
 
15
+ # Target service address - The actual service receiving forwarded requests
16
  ENV TARGET_URL="http://localhost:3010"
17
 
18
+ # Optional prefix for model list API endpoint - Such as /v1, /api/v1, etc.
19
  ENV API_PATH="/v1"
20
 
21
+ # Request timeout (milliseconds)
22
  ENV TIMEOUT=30000
23
 
24
  EXPOSE 7860
25
 
26
+ CMD ["node", "hf.js"]