Spaces:
Sleeping
Sleeping
iskoldt-X commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,6 +42,26 @@ python3 ChuanhuChatbot.py
|
|
| 42 |
|
| 43 |
如果还是不行,请先[安装Python](https://www.runoob.com/python/python-install.html)。
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
## 使用技巧
|
| 46 |
|
| 47 |
- 使用System Prompt可以很有效地设定前提条件
|
|
|
|
| 42 |
|
| 43 |
如果还是不行,请先[安装Python](https://www.runoob.com/python/python-install.html)。
|
| 44 |
|
| 45 |
+
## 使用Docker 安装与运行
|
| 46 |
+
|
| 47 |
+
构建镜像
|
| 48 |
+
```
|
| 49 |
+
docker build -t chuanhuchatgpt:latest .
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
一键运行
|
| 53 |
+
```
|
| 54 |
+
docker run -d --name chatgpt -e my_api_key="替换成API" --network host chuanhuchatgpt:latest
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
查看本地访问地址
|
| 58 |
+
```
|
| 59 |
+
docker logs chatgpt
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
## 使用技巧
|
| 66 |
|
| 67 |
- 使用System Prompt可以很有效地设定前提条件
|