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"]