cursor / Dockerfile
sajaxs's picture
Update Dockerfile
6dc9d77 verified
raw
history blame contribute delete
502 Bytes
FROM node:lts-alpine
EXPOSE 3000
ENV TZ=Asia/Shanghai x-cursor-checksum=JqWnwEfK9f4c6197442b134b36bb844d9edd6637dbd289b7b0074e03de6a9a6502d3f2ee/d1150ff9ee2859555014776a70b7402deab5eb8567e8a51086cc27f61cae242f
WORKDIR /app
RUN apk add git
RUN git clone https://github.com/zhx47/cursor-api.git .
ADD utils.js src/
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
CMD ["npm", "run", "start"]