cursor-ai-proxy / Dockerfile
isididiidid's picture
Update Dockerfile
9ea88cd verified
raw
history blame contribute delete
535 Bytes
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"]