Update the readme file section: 安装-方法2:使用Docker

This commit is contained in:
Da Kuang 2023-04-21 02:24:39 -04:00
parent 90e1eef61f
commit 2c2a8ea549

View File

@ -133,9 +133,11 @@ python main.py
- 函数插件区下拉菜单中有更多功能可供选择
```
## 安装-方法2使用Docker (Linux)
## 安装-方法2使用Docker
1. 仅ChatGPT推荐大多数人选择
在 Linux 环境下
``` sh
# 下载项目
git clone https://github.com/binary-husky/chatgpt_academic.git
@ -144,11 +146,25 @@ cd chatgpt_academic
用任意文本编辑器编辑 config.py
# 安装
docker build -t gpt-academic .
# 运行
# 运行
docker run --rm -it --net=host gpt-academic
```
2. ChatGPT+ChatGLM需要对docker熟悉 + 读懂Dockerfile + 电脑配置够强)
在 macOS 环境下
``` sh
# 下载项目
git clone https://github.com/binary-husky/chatgpt_academic.git
cd chatgpt_academic
# 配置 海外Proxy 和 OpenAI API KEY
# 把 WEB_PORT 设置为一个端口固定端口 (例如 50923)
用任意文本编辑器编辑 config.py
# 安装
docker build -t gpt-academic .
# 运行时用 -p 将容器上的端口 (例如 50923) 暴露给主机上的端口
docker run --rm -it -p 50923:50923 gpt-academic
```
1. ChatGPT+ChatGLM需要对docker熟悉 + 读懂Dockerfile + 电脑配置够强)
``` sh
# 修改Dockerfile