docs: polish docker run (#44)

* docs: polish docker run

* Update README.md

---------

Co-authored-by: Redon <790348264@qq.com>
main
Stephen Ni 2 years ago committed by GitHub
parent 4a06b3943c
commit 4128d319ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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` 文件夹复制到你的托管服务器上

Loading…
Cancel
Save