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

Merge branch 'Dockerization' into 'master'

Add docker functionality

See merge request MisterBiggs/simple-telegram-bot!1
This commit is contained in:
Anson Biggs 2019-02-04 03:54:36 +00:00
commit c9d726b4ae
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(