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