Spaces:
Running
Running
File size: 535 Bytes
0de2466 9ea88cd 0de2466 9ea88cd 0de2466 9ea88cd 636f66e 9ea88cd 636f66e 0de2466 636f66e 9ea88cd |
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 27 28 |
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
# 服务端口
ENV HF_PORT=7860
# 代理配置 - 格式: "http://user:pass@host:port,http://user2:pass2@host2:port2"
ENV PROXY=""
# 目标服务地址 - 接收转发请求的实际服务
ENV TARGET_URL="http://localhost:3010"
# 模型列表API端点可选前缀 - 如/v1,/api/v1等
ENV API_PATH="/v1"
# 请求超时时间(毫秒)
ENV TIMEOUT=30000
EXPOSE 7860
CMD ["node", "hf.js"]
|