1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 23:06:40 +00:00

Bot now runs in a Docker image

This commit is contained in:
Anson 2019-02-03 20:51:26 -07:00
parent 5f3b324742
commit cd70cd067a
3 changed files with 12 additions and 1 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM python:3.7-slim
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python", "./stockBot.py" ]

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
telegram==0.0.1
python-telegram-bot==11.1.0

View File

@ -7,9 +7,10 @@ import urllib.request
import telegram
from telegram.ext import CommandHandler, Filters, MessageHandler, Updater
import credentials
import tickerInfo
TOKEN = "TELEGRAM_TOKEN
TOKEN = credentials.secrets["TELEGRAM_TOKEN"]
# Enable logging
logging.basicConfig(