feat: add healthcheck to Dockerfiles (#228)

This commit is contained in:
Quentin Fuxa
2026-02-19 22:18:00 +01:00
parent b8d9d7d289
commit d337248fda
2 changed files with 6 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ RUN if [ -n "$HF_TKN_FILE" ]; then \
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 \
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/')" || exit 1
ENTRYPOINT ["whisperlivekit-server", "--host", "0.0.0.0"]
CMD ["--model", "medium"]

View File

@@ -55,6 +55,9 @@ RUN if [ -n "$HF_TKN_FILE" ]; then \
# Expose port for the transcription server
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=5s --start-period=120s --retries=3 \
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/')" || exit 1
ENTRYPOINT ["whisperlivekit-server", "--host", "0.0.0.0"]
# Default args - you might want to use a smaller model for CPU