From 4128d319ed12712b2d988f52b6a6dfb7fff10bd5 Mon Sep 17 00:00:00 2001 From: Stephen Ni Date: Thu, 16 Feb 2023 20:29:46 +0800 Subject: [PATCH] docs: polish docker run (#44) * docs: polish docker run * Update README.md --------- Co-authored-by: Redon <790348264@qq.com> --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cbaeae0..13e5752 100644 --- a/README.md +++ b/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` 文件夹复制到你的托管服务器上