1 2 3 4 5 6 7 8 9 10 11 12 13
FROM python:3.9 RUN pip install --no-cache-dir pytz python-telegram-bot==13.1 pyzmail36 imapclient COPY utils /opt/workdir/telegram-mail-bot/utils COPY bot.py /opt/workdir/telegram-mail-bot/ WORKDIR /opt/workdir/telegram-mail-bot ENV OWNER_CHAT_ID= ENV TELEGRAM_TOKEN= CMD ["/bin/sh", "-c", "/usr/local/bin/python bot.py" ]