diff --git a/Dockerfile b/Dockerfile index c9cb2f2..ecefae3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,5 +35,8 @@ RUN git init /vault && \ EXPOSE 8080 +HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=30s \ + CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/').close()" || exit 1 + ENTRYPOINT ["/work/entrypoint.sh"] CMD ["uvicorn", "webui:app", "--host", "0.0.0.0", "--port", "8080"]