|
FROM node:lts-alpine |
|
|
|
EXPOSE 3000 |
|
ENV TZ=Asia/Shanghai x-cursor-checksum=zo3AYKRfKGlz3w67jUdcA3GcmNIDpZxDxPCq7eF1Mz2R0tpfKVcc8st0RfDkXQx225fProSP/aHE00WpvMkJuNkckn5qX3AGUrwtMiy0pQI3cwrpBfypCLORUjmpr9CAcHlpR27ne |
|
|
|
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/\/hf\/v1\/chat\/completions/g' src/index.js |
|
RUN sed -i '/\/\/ ε―ε¨ζε‘ε¨/c\app.get("/", async (req, res) => {\n return res.status(200).send("hello world!");\n});' src/index.js |
|
|
|
CMD ["npm", "run", "start"] |