File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 104104
105105# mypy
106106.mypy_cache /
107+
108+ # vscode
109+ .vscode
Original file line number Diff line number Diff line change 1+ FROM python:3.8
2+
3+ USER root
4+
5+ COPY . /pycamp/telegram_bot
6+ WORKDIR /pycamp/telegram_bot
7+ RUN pip3 install -U .
8+
9+ CMD [ "python" , "bin/run_bot.py" ]
Original file line number Diff line number Diff line change @@ -49,3 +49,18 @@ Para correr el bot ejecutá:
4949
5050 Y listo! Tu bot está corriendo en tu máquina, esperando que alguien le escriba por telegram.
5151Para probarlo buscalo en telegram y mandale el comando `/start `
52+
53+ Ejecutar en un entorno dockerizado
54+ __________________________________
55+
56+ Para ejecutar el bot primero contruya la imagen:
57+
58+ .. code-block :: bash
59+
60+ docker build -t pycamp_bot:latest .
61+
62+ Ahora inicie el contenedor:
63+
64+ .. code-block :: bash
65+
66+ docker run -e " TOKEN=TOKEN_PERSONAL" -e " PYCAMP_BOT_MASTER_KEY=KEY" -v ./:/pycamp/telegram_bot --name pycamp_telegram_bot pycamp_bot
You can’t perform that action at this time.
0 commit comments