Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -7,10 +7,13 @@ COPY hf.js /app/hf.js
|
|
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 |
-
|
|
|
7 |
RUN npm install http-proxy-middleware axios
|
8 |
|
9 |
ENV HF_PORT=7860
|
10 |
+
# 初始代理池(可选,如果没有则从外部更新)
|
11 |
ENV PROXY=""
|
12 |
+
# 更新代理的间隔(单位:秒,默认 300 秒,即 5 分钟)
|
13 |
+
ENV PROXY_UPDATE_INTERVAL=300
|
14 |
+
# 代理列表的外部来源(示例 API,需替换为实际地址)
|
15 |
+
ENV PROXY_API_URL="http://example.com/api/proxies"
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|
19 |
CMD ["node", "hf.js"]
|
|