tg_rss_bot/Dockerfile
mitsuha_s a3327a505c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
remove invalid values in docker-compose.yml and add little documentation for environment values
2022-07-26 19:38:38 +00: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" ]