diff --git a/Dockerfile b/Dockerfile index cf72610..092f28e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,7 @@ ENV DOTENV_PATH=/home/chaim/.env EXPOSE 8080 +HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=10 \ + CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/')" || exit 1 + CMD ["uvicorn", "web.app:app", "--host", "0.0.0.0", "--port", "8080"]