cursor / Dockerfile
906051999
add model
4a5333b
raw
history blame
410 Bytes
FROM node:lts-alpine
EXPOSE 3000
ENV TZ=Asia/Shanghai
WORKDIR /app
RUN apk add git
RUN git clone https://github.com/906051999/cursor-api.git .
ADD utils.js src/
RUN yarn config set registry https://registry.npmmirror.com/
RUN yarn
RUN sed -i \
-e 's/\/v1\/chat\/completions/\/proxy\/v1\/chat\/completions/g' \
-e 's/\/v1\/models/\/proxy\/v1\/models/g' \
src/index.js
CMD ["npm", "run", "start"]