chore: update README

This commit is contained in:
ChenZhaoYu 2023-02-16 13:42:19 +08:00
parent 6646695849
commit 30372c2e70
1 changed files with 7 additions and 2 deletions

View File

@ -95,8 +95,12 @@ pnpm build
pnpm prod
```
PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可
## Docker build & run
[参考信息](https://github.com/Chanzhaoyu/chatgpt-web/pull/33)
```
docker rm -f $(docker ps -a| grep marlkiller/chatgpt-web | awk '{print $1}')
docker rmi $(docker images 'marlkiller/chatgpt-web' -q)
@ -105,11 +109,12 @@ docker build -t marlkiller/chatgpt-web .
docker run -p 1002:1002 marlkiller/chatgpt-web
```
PS: 不进行打包,直接在服务器上运行 `pnpm start` 也可
### 网页
根目录下运行以下命令,然后将 `dist` 文件夹复制到你的托管服务器上
[参考信息](https://cn.vitejs.dev/guide/static-deploy.html#building-the-app)
```shell
pnpm build
```