|
|
@ -99,14 +99,10 @@ PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可
|
|
|
|
|
|
|
|
|
|
|
|
## Docker build & run
|
|
|
|
## Docker build & run
|
|
|
|
|
|
|
|
|
|
|
|
[参考信息](https://github.com/Chanzhaoyu/chatgpt-web/pull/33)
|
|
|
|
[参考信息](https://github.com/Chanzhaoyu/chatgpt-web/pull/42)
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```bash
|
|
|
|
docker rm -f $(docker ps -a| grep marlkiller/chatgpt-web | awk '{print $1}')
|
|
|
|
docker build -t chatgpt-web .
|
|
|
|
docker rmi $(docker images 'marlkiller/chatgpt-web' -q)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docker build -t marlkiller/chatgpt-web .
|
|
|
|
|
|
|
|
docker run -p 1002:1002 marlkiller/chatgpt-web
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Docker compose
|
|
|
|
## Docker compose
|
|
|
@ -123,6 +119,7 @@ service:
|
|
|
|
OPENAI_API_KEY: xxxxxx
|
|
|
|
OPENAI_API_KEY: xxxxxx
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 网页
|
|
|
|
### 网页
|
|
|
|
|
|
|
|
|
|
|
|
根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上
|
|
|
|
根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上
|
|
|
|