cursor / Dockerfile
wIK5Ez2o's picture
Update Dockerfile
8c3a804 verified
raw
history blame
417 Bytes
FROM node:lts-alpine
EXPOSE 3000
ENV TZ=Asia/Shanghai
WORKDIR /app
RUN apk add git
RUN git clone https://github.com/zhx47/cursor-api.git .
RUN yarn config set registry https://registry.npmmirror.com/
RUN yarn
RUN sed -i 's/\/v1\/chat\/completions/\/proxies\/v1\/chat\/completions/g' src/index.js
RUN sed -i 's/toUpperCase();/toUpperCase();\n console.log(hexString);/g' src/utils.js
CMD ["npm", "run", "start"]