File size: 579 Bytes
0de2466
 
 
 
 
 
9ea88cd
0de2466
c884913
0de2466
9ea88cd
c884913
636f66e
9ea88cd
c884913
9ea88cd
 
c884913
9ea88cd
 
c884913
9ea88cd
636f66e
0de2466
 
c884913
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/jiuz-chn/cursor-to-openai:latest

WORKDIR /app

COPY hf.js /app/hf.js

RUN npm install http-proxy-middleware axios express morgan

# Service port
ENV HF_PORT=7860

# Proxy configuration - Format: "http://user:pass@host:port,http://user2:pass2@host2:port2"
ENV PROXY=""

# Target service address - The actual service receiving forwarded requests
ENV TARGET_URL="http://localhost:3010"

# Optional prefix for model list API endpoint - Such as /v1, /api/v1, etc.
ENV API_PATH="/v1"

# Request timeout (milliseconds)
ENV TIMEOUT=30000

EXPOSE 7860

CMD ["node", "hf.js"]