diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14c72d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:2.7-alpine +ADD . /wxBot +WORKDIR /wxBot +RUN pip install requests +RUN pip install pyqrcode +RUN pip install pypng +RUN apk update && apk add zlib-dev && apk add jpeg-dev && apk add alpine-sdk +RUN pip install Pillow +CMD ["python", "bot.py"] + diff --git a/README.md b/README.md index fb144de..d352222 100644 --- a/README.md +++ b/README.md @@ -269,6 +269,7 @@ python test.py [zixia/wechaty](https://github.com/zixia/wechaty) Wechaty is wechat for bot in Javascript(ES6). It's a Personal Account Robot Framework/Library. +[autherlj/wxbot](https://hub.docker.com/r/autherlj/wxbot/)实现微信机器人的容器化 ## 7 基于Wxbot延伸的一些项目 [WxbotManage](https://coding.net/u/vivre/p/WxbotManage/git) 基于Wxbot的微信多开管理和Webapi系统 diff --git a/bot.py b/bot.py index bd56c88..d3efe43 100644 --- a/bot.py +++ b/bot.py @@ -99,7 +99,7 @@ def handle_msg_all(self, msg): def main(): bot = TulingWXBot() bot.DEBUG = True - bot.conf['qr'] = 'png' + bot.conf['qr'] = 'tty' bot.run()