Skip to content

Commit d8e4f87

Browse files
committed
Documentación de docker
1 parent f324eb9 commit d8e4f87

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/instalacion_entorno.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
5151
Para 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

0 commit comments

Comments
 (0)