赞
踩
1、安装环境
yum install docker
yum install docker-compose
systemctl start docker
docker pull wechaty/wechaty:0.65
2、git免密登录
ssh-keygen -t rsa
cat /root/.ssh/id_rsa.pub
git clone git@github.com:liuguangrui123/rui-chatgpt-on-wechat.git
3、设置wechaty 环境变量
export WECHATY_PUPPET=wechaty-puppet-padlocal
export WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_840ae6b5d0bb49918991eeebd1e47912
export WECHATY_TOKEN=da4d091e-833c-7ddc-ef62-868f772a1438
export WECHATY_PUPPET_SERVER_PORT=9001
export WECHATY_LOG=verbose
4、运行wechaty
docker run -it \
--name wechaty_gateway \
--rm \
-e WECHATY_LOG \
-e WECHATY_PUPPET \
-e WECHATY_PUPPET_PADLOCAL_TOKEN \
-e WECHATY_PUPPET_SERVER_PORT \
-e WECHATY_TOKEN \
-p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
wechaty/wechaty:0.65
5、运行项目
rm -rf rui-chatgpt-on-wechat.git
git clone git@github.com:liuguangrui123/rui-chatgpt-on-wechat.git
cd rui-chatgpt-on-wechat/docker
chmod 777 entrypoint.sh build.alpine.sh docker-compose.yaml
./build.alpine.sh
docker-compose up
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。