docs: polish docker run (#44)
* docs: polish docker run * Update README.md --------- Co-authored-by: Redon <790348264@qq.com>
This commit is contained in:
parent
4a06b3943c
commit
4128d319ed
11
README.md
11
README.md
|
@ -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` 文件夹复制到你的托管服务器上
|
||||
|
|
Loading…
Reference in New Issue