redfernstech commited on
Commit
e09dc76
·
verified ·
1 Parent(s): 1ac2fa1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -17,5 +17,9 @@ COPY requirements.txt ./
17
  RUN pip install --no-cache-dir -r requirements.txt
18
  COPY . .
19
 
 
20
  EXPOSE 8000
21
- CMD ["sh", "-c", "ollama serve & uvicorn main:app --host 0.0.0.0 --port 8000"]
 
 
 
 
17
  RUN pip install --no-cache-dir -r requirements.txt
18
  COPY . .
19
 
20
+
21
  EXPOSE 8000
22
+ HEALTHCHECK CMD curl --fail http://localhost:8000/health || exit 1
23
+
24
+ # ---- Entrypoint ----
25
+ CMD ["bash", "-c", "ollama serve & uvicorn main:app --host 0.0.0.0 --port 8000"]