diff --git a/app/Dockerfile b/app/Dockerfile index be8f4e5..7de7ea7 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -11,4 +11,7 @@ COPY templates/ templates/ ENV PYTHONUNBUFFERED=1 EXPOSE 8000 +HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=30s \ + CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/').close()" || exit 1 + CMD ["gunicorn", "-b", "0.0.0.0:8000", "-w", "2", "--access-logfile", "-", "app:app"]