Download Dockerfile from hstz/cursor: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/hstz/cursor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hstz/cursor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hstz/cursor/resolve/main/Dockerfile
520 Bytes
| FROM node:lts-alpine | |
| EXPOSE 3000 | |
| ENV TZ=Asia/Shanghai | |
| # 添加时区配置 | |
| RUN apk add --no-cache tzdata && \ | |
| ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ | |
| echo $TZ > /etc/timezone | |
| WORKDIR /app | |
| RUN apk add git | |
| RUN git clone https://github.com/906051999/cursor-api.git . && \ | |
| git pull origin main | |
| ADD utils.js src/ | |
| RUN yarn config set registry https://registry.npmmirror.com/ | |
| RUN yarn | |
| RUN sed -i 's/\/v1\/chat\/completions/\/proxy\/v1\/chat\/completions/g' src/index.js | |
| CMD ["npm", "run", "start"] | |