TelegramAktienBot/telegram_bot/Dockerfile

22 lines
591 B
Docker
Raw Normal View History

2022-03-16 09:41:13 +00:00
FROM python:3.10-slim
2022-04-04 13:51:43 +00:00
# Change the working directory to the root of the project
WORKDIR /srv/flask_app
2022-04-04 13:51:43 +00:00
# Install the dependencies
2022-03-12 19:17:06 +00:00
COPY telegram_bot/requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
2022-04-04 13:51:43 +00:00
# Copy the source code to the working directory
2022-03-12 19:17:06 +00:00
COPY telegram_bot /srv/flask_app
2022-04-04 13:51:43 +00:00
# Change file permissions
RUN chmod +x ./deploy/start.sh
RUN chmod +x ./deploy/healthcheck.sh
2022-04-04 13:51:43 +00:00
# TODO: Set healthcheck
# HEALTHCHECK --interval=15s --timeout=2s CMD ["./deploy/healthcheck.sh"]
2022-04-04 13:51:43 +00:00
# Run the application
2022-03-10 07:41:36 +00:00
CMD ["./deploy/start.sh"]