Update Dockerfile
Browse files- 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 |
-
#
|
| 13 |
ENV PROXY=""
|
| 14 |
|
| 15 |
-
#
|
| 16 |
ENV TARGET_URL="http://localhost:3010"
|
| 17 |
|
| 18 |
-
#
|
| 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"]
|
|
|