This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1- FROM node:lts AS builder
1+ FROM node:lts-alpine
22
33WORKDIR /app
44
5- COPY . /app
5+ COPY package*.json ./
66
7- RUN yarn install --registry https://registry.npmmirror.com/
7+ RUN npm ci --only=production
88
9- FROM zenika/alpine-chrome:124-with-node
10-
11- COPY --from=builder /app/package.json /app/package.json
12- COPY --from=builder /app/api /app/api
13- COPY --from=builder /app/node_modules /app/node_modules
14-
15- WORKDIR /app
16-
17- USER root
9+ COPY . .
1810
1911EXPOSE 8787
2012
21- CMD ["npm" , "start" ]
13+ CMD ["npm" , "start" ]
Original file line number Diff line number Diff line change 3737
3838### 对话请求
3939
40- 示例(其中 ` chatapi .r12.top` 请替换为你自己部署后的域名):
40+ 示例(其中 ` chatcfapi .r12.top` 请替换为你自己部署后的域名):
4141
4242``` bash
4343curl --request POST ' https://chatcfapi.r12.top/v1/chat/completions' \
@@ -56,9 +56,9 @@ curl --request POST 'https://chatcfapi.r12.top/v1/chat/completions' \
5656
5757### 模型查询
5858
59- 示例(其中 ` chatapi .r12.top` 请替换为你自己部署后的域名):
59+ 示例(其中 ` chatcfapi .r12.top` 请替换为你自己部署后的域名):
6060
61- 访问 ` http://chatapi .r12.top/v1/models ` 可查看当前支持的模型
61+ 访问 ` http://chatcfapi .r12.top/v1/models ` 可查看当前支持的模型
6262
6363## 支持的模型
6464
You can’t perform that action at this time.
0 commit comments