Download Dockerfile from bingloo/c2api: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/bingloo/c2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bingloo/c2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bingloo/c2api/resolve/main/Dockerfile
380 Bytes
| FROM node:lts-alpine | |
| WORKDIR /app | |
| RUN apk add --no-cache tzdata git && \ | |
| git clone https://github.com/bingloo/cursor-api.git . && \ | |
| sed -i "s|app.post('/v1/chat/completions', async (req, res) =>|app.post('/api/v1/chat/completions', async (req, res) =>|" src/index.js && \ | |
| npm i | |
| ENV TZ=Asia/Shanghai \ | |
| PORT=3000 | |
| ENTRYPOINT ["node", "src/index.js"] | |