Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -1,18 +1,17 @@
|
|
1 |
FROM node:lts-alpine
|
2 |
|
3 |
EXPOSE 3000
|
4 |
-
ENV TZ=Asia/Shanghai x-cursor-checksum=
|
5 |
|
6 |
WORKDIR /app
|
7 |
RUN apk add git
|
8 |
-
RUN git clone https://github.com/
|
9 |
-
#RUN git clone https://github.com/zhx47/cursor-api.git .
|
10 |
# 这里外面的utils.js是调试打印日志的作用,并且版本不是最新的
|
11 |
#ADD utils.js src/
|
12 |
RUN yarn config set registry https://registry.npmmirror.com/
|
13 |
RUN yarn
|
14 |
|
15 |
RUN sed -i 's/\/v1\/chat\/completions/\/hf\/v1\/chat\/completions/g' src/index.js
|
16 |
-
|
17 |
|
18 |
CMD ["npm", "run", "start"]
|
|
|
1 |
FROM node:lts-alpine
|
2 |
|
3 |
EXPOSE 3000
|
4 |
+
ENV TZ=Asia/Shanghai x-cursor-checksum=zo3AYKRfKGlz3w66jUdcA3GcmNIDpZxDxPCq7eF1Mz2R0tpfKVcc8st0RfDkXQx115fProSP/aHE00WpvMkJuNkckn5qX3AGUrwtMiy0pQI3cwrpBfypCLORUjmpr9CAcHlpR16ne
|
5 |
|
6 |
WORKDIR /app
|
7 |
RUN apk add git
|
8 |
+
RUN git clone https://github.com/zhx47/cursor-api.git .
|
|
|
9 |
# 这里外面的utils.js是调试打印日志的作用,并且版本不是最新的
|
10 |
#ADD utils.js src/
|
11 |
RUN yarn config set registry https://registry.npmmirror.com/
|
12 |
RUN yarn
|
13 |
|
14 |
RUN sed -i 's/\/v1\/chat\/completions/\/hf\/v1\/chat\/completions/g' src/index.js
|
15 |
+
RUN sed -i '/\/\/ 启动服务器/c\app.get("/", async (req, res) => {\n return res.status(200).send("hello world!");\n});' src/index.js
|
16 |
|
17 |
CMD ["npm", "run", "start"]
|