From db158fc9e1010e256405722e03da93978bbed42a Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 15 May 2024 08:44:10 -1000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4e060b5a2..d874c8561 100644 --- a/Dockerfile +++ b/Dockerfile @@ -86,7 +86,7 @@ RUN if [ "$USE_OLLAMA" = "true" ]; then \ # for RAG OCR apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 && \ # install helper tools - apt-get install -y --no-install-recommends curl && \ + apt-get install -y --no-install-recommends curl jq && \ # install ollama curl -fsSL https://ollama.com/install.sh | sh && \ # cleanup @@ -134,6 +134,7 @@ COPY ./backend . EXPOSE 8080 -HEALTHCHECK CMD curl --fail http://localhost:8080/health || exit 1 +HEALTHCHECK CMD curl --silent --fail http://localhost:8080/health | jq -e '.status == true' || exit 1 + CMD [ "bash", "start.sh"]