feat: add healthcheck to Dockerfiles (#228)
This commit is contained in:
parent
b8d9d7d289
commit
d337248fda
2 changed files with 6 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue