File size: 458 Bytes
7b3af6e
 
 
 
 
 
b82e3e8
4b1bbe6
 
8d8affb
7b3af6e
 
 
210a55d
 
9f08c60
210a55d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 . && \
    git pull origin main
ADD utils.js src/
RUN yarn config set registry https://registry.npmmirror.com/
RUN yarn

# 修改 sed 命令,将 /v1/chat/completions 替换为 /api/v1/chat/completions
RUN sed -i 's/\/v1\/chat\/completions/\/api\/v1\/chat\/completions/g' src/index.js

CMD ["npm", "run", "start"]