mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
Bot now runs in a Docker image
This commit is contained in:
parent
5f3b324742
commit
cd70cd067a
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
telegram==0.0.1
|
||||
python-telegram-bot==11.1.0
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user