docs: polish docker run (#44)

* docs: polish docker run

* Update README.md

---------

Co-authored-by: Redon <790348264@qq.com>
This commit is contained in:
Stephen Ni 2023-02-16 20:29:46 +08:00 committed by GitHub
parent 4a06b3943c
commit 4128d319ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

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