aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-01-25 12:49:45 +0800
committerMole Shang <[email protected]>2023-01-25 12:49:45 +0800
commit71624ff95ee090a19056ee40ec37d4535d92d51d (patch)
treecfcdb91347596d778375ad626f729f732db6cd9e /Dockerfile
parentd741c552a7dbe18515955bfc2c173367a03fdbc7 (diff)
downloadtelegram-mail-bot-71624ff95ee090a19056ee40ec37d4535d92d51d.tar.gz
telegram-mail-bot-71624ff95ee090a19056ee40ec37d4535d92d51d.tar.bz2
telegram-mail-bot-71624ff95ee090a19056ee40ec37d4535d92d51d.zip
refactor: migrate to python-telegram-bot-20 apis...
... and generate requirements.txt for deps.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index c4a3c6c..bc1eb98 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,12 @@
FROM python:3.9
-RUN pip install --no-cache-dir pytz python-telegram-bot==13.1 pyzmail36 imapclient
+WORKDIR /opt/workdir/telegram-mail-bot
COPY utils /opt/workdir/telegram-mail-bot/utils
COPY bot.py /opt/workdir/telegram-mail-bot/
+COPY requirements.txt /opt/workdir/telegram-mail-bot/
-WORKDIR /opt/workdir/telegram-mail-bot
+RUN pip install --no-cache-dir -r requirements.txt
ENV OWNER_CHAT_ID=
ENV TELEGRAM_TOKEN=