Update README.md

This commit is contained in:
binary-husky 2023-05-11 18:11:19 +08:00 committed by GitHub
parent 1134ec2df5
commit 18a59598ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,8 +150,10 @@ cd chatgpt_academic # 进入路径
nano config.py # 用任意文本编辑器编辑config.py, 配置 “Proxy” “API_KEY” 以及 “WEB_PORT” (例如50923) 等
docker build -t gpt-academic . # 安装
docker run --rm -it --net=host gpt-academic #(最后一步-选择1在Linux环境下`--net=host`更方便快捷
docker run --rm -it -p 50923:50923 gpt-academic #(最后一步-选择2在macOS/windows环境下只能用-p选项将容器上的端口(例如50923)暴露给主机上的端口
#(最后一步-选择1在Linux环境下`--net=host`更方便快捷
docker run --rm -it --net=host gpt-academic
#(最后一步-选择2在macOS/windows环境下只能用-p选项将容器上的端口(例如50923)暴露给主机上的端口
docker run --rm -it -e WEB_PORT=50923 -p 50923:50923 gpt-academic
```
2. ChatGPT + ChatGLM + MOSS需要熟悉Docker