Use 2 docker containers for bot and webservice

This commit is contained in:
2022-03-12 20:02:39 +01:00
parent 5002d8509b
commit fdd7bc2d4c
14 changed files with 48 additions and 16 deletions

17
telegram_bot/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.10-alpine
WORKDIR /srv/flask_app
COPY requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
COPY .. /srv/flask_app
RUN chmod +x ./deploy/start.sh
RUN chmod +x ./deploy/healthcheck.sh
# HEALTHCHECK --interval=15s --timeout=2s CMD ["./deploy/healthcheck.sh"]
EXPOSE 80
CMD ["./deploy/start.sh"]