Tooruchan / Telegram-CAPTCHA-Bot

基于Pyrogram的Telegram加群验证机器人开源实现。本仓库已停止更新,请移步至: https://github.com/Tooruchan/Telegram-CAPTCHA-bot-pyrogram
https://github.com/Tooruchan/Telegram-CAPTCHA-bot-pyrogram
GNU Affero General Public License v3.0
76 stars 18 forks source link

Feature: Containerize #16

Open ghost opened 3 years ago

ghost commented 3 years ago

Container implementation based on Python 3 Alpine Docker image. With packages Git, GCC, musl-dev. Main Working directory /tg-captcha/workdir.

At this moment, you need to config your bot (auth,ini & config.json) before starting the container. Sample command: docker run -it --name="tg-captcha" -v /path-to-config-files/auth.ini:/tg-captcha/workdir/auth.ini -v /path-to-config-files/config.json:/tg-captcha/workdir/config.json --restart=always tg-captcha

docker-run.sh will check pip package update and pull updated source code from Github on startup.

ghost commented 3 years ago

Close #15 @Tooruchan 大佬我改完啦, 求检阅哈哈

ghost commented 3 years ago

重新Build完的在这里: https://hub.docker.com/layers/135618907/imintick/tg-captcha/0.1-rev/images/sha256-32469ab7630df97d70720c774e5d62ef28ce11ace5d421d7d4277f41db8e693f?context=explore