Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 112d99d

Browse files
committed
Merge branch 'master' of https://github.com/leafmoes/DDG-Chat
2 parents 73fe98a + c04a3e8 commit 112d99d

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

Dockerfile

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
FROM node:lts AS builder
1+
FROM node:lts-alpine
22

33
WORKDIR /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

1911
EXPOSE 8787
2012

21-
CMD ["npm", "start"]
13+
CMD ["npm", "start"]

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
### 对话请求
3939

40-
示例(其中 `chatapi.r12.top` 请替换为你自己部署后的域名):
40+
示例(其中 `chatcfapi.r12.top` 请替换为你自己部署后的域名):
4141

4242
```bash
4343
curl --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

0 commit comments

Comments
 (0)