From ef8070d35dd5980aa92e7d6d4a9d66b0b16f7cf5 Mon Sep 17 00:00:00 2001 From: joecryptotoo <80373433+joecryptotoo@users.noreply.github.com> Date: Thu, 9 May 2024 12:25:26 -0700 Subject: [PATCH] added healthcheck --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index faee1ac32..e8ac47c8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -82,7 +82,7 @@ RUN echo -n 00000000-0000-0000-0000-000000000000 > $HOME/.cache/chroma/telemetry RUN if [ "$USE_OLLAMA" = "true" ]; then \ apt-get update && \ # Install pandoc and netcat - apt-get install -y --no-install-recommends pandoc netcat-openbsd && \ + apt-get install -y --no-install-recommends pandoc netcat-openbsd curl && \ # for RAG OCR apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 && \ # install helper tools @@ -94,7 +94,7 @@ RUN if [ "$USE_OLLAMA" = "true" ]; then \ else \ apt-get update && \ # Install pandoc and netcat - apt-get install -y --no-install-recommends pandoc netcat-openbsd && \ + apt-get install -y --no-install-recommends pandoc netcat-openbsd curl && \ # for RAG OCR apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 && \ # cleanup @@ -134,4 +134,6 @@ COPY ./backend . EXPOSE 8080 +HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1 + CMD [ "bash", "start.sh"]