Added healthchecks
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-03-13 13:37:23 +01:00
parent 09801b75d0
commit c0005f38d5
4 changed files with 18 additions and 2 deletions

View File

@@ -9,4 +9,6 @@ EXPOSE 8080
COPY ./ /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
HEALTHCHECK --interval=1m --timeout=3s CMD curl --fail http://localhost:8080/health || exit 1