Browse Source

Update Dockerfile

Timothy J. Baek 11 tháng trước cách đây
mục cha
commit
db158fc9e1
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      Dockerfile

+ 3 - 2
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"]