v2.1 添加docker部署

This commit is contained in:
Evan 2022-12-14 14:54:46 +09:00
parent e5af29b592
commit 130392868e

View File

@ -47,7 +47,12 @@ go run main.go
同时启动微信和telegram微信登陆的地址请查看运行日志 同时启动微信和telegram微信登陆的地址请查看运行日志
``` ```
# apple silicon
docker run -d --name="wechatgpt" -e apiKey="你的chatgpt apiKey" telegram="你的telegram token" xiaomoinfo/wechatgpt:latest docker run -d --name="wechatgpt" -e apiKey="你的chatgpt apiKey" telegram="你的telegram token" xiaomoinfo/wechatgpt:latest
# linux amd64
docker run -d --name="wechatgpt" -e apiKey="你的chatgpt apiKey" telegram="你的telegram token" xiaomoinfo/wechatgpt:latest
``` ```
@ -55,8 +60,12 @@ docker run -d --name="wechatgpt" -e apiKey="你的chatgpt apiKey" telegram="你
如果只想运行微信智能机器人的话运行下面这段代码,微信登陆的地址请查看运行日志 如果只想运行微信智能机器人的话运行下面这段代码,微信登陆的地址请查看运行日志
``` ```
# apple silicon
docker run -d --name wechatgpt -e apiKey="你的chatgpt apiKey" xiaomoinfo/wechatgpt:latest docker run -d --name wechatgpt -e apiKey="你的chatgpt apiKey" xiaomoinfo/wechatgpt:latest
# linux amd64
docker run -d --name wechatgpt -e apiKey="你的chatgpt apiKey" xiaomoinfo/wechatgpt-amd64:latest
``` ```
### 微信 ### 微信