moved healthchecks from Dockerfiles to docker-compose.yml

This commit is contained in:
Kay Kaprolat
2021-12-07 22:17:18 +01:00
parent 2681ab3828
commit ac20be8744
3 changed files with 12 additions and 4 deletions

View File

@@ -10,6 +10,4 @@ ADD docker/resources_example.py resources.py
RUN pip3 install -r requirements.txt
EXPOSE 5000
HEALTHCHECK --interval=2m --timeout=3s \
CMD curl -f http://localhost:5000 || exit 1
CMD python3 app.py

View File

@@ -2,6 +2,4 @@
FROM python:3.9.9-slim
WORKDIR /empty_dir
EXPOSE 80
HEALTHCHECK --interval=2m --timeout=3s \
CMD curl -f http://localhost:80 || exit 1
CMD python -m http.server 80