tg_rss_bot/Dockerfile
Alexey Skobkin 6d22d78882
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
#36 Removing duplicated variables in Dockerfile after rebase.
2022-08-13 23:14:35 +03:00

21 lines
483 B
Docker

FROM python:3.10-alpine
WORKDIR /bot
COPY . .
RUN pip install -r requirements.txt
ENV PYTHONUNBUFFERED=1
# App settings
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
ENV RSSBOT_DSN=postgres://username:password@hostname/database_name
# https://core.telegram.org/bots#6-botfather
ENV RSSBOT_TG_TOKEN=1234567890:yourbotstoken
# https://docs.python.org/3/howto/logging.html#logging-levels
ENV LOG_LEVEL=INFO
ENTRYPOINT [ "python" ]
CMD [ "bot.py" ]