VcRlAgent commited on
Commit
0bc41a0
·
1 Parent(s): 85f2806

Reranker and Debug Added - Optimized Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -42,6 +42,12 @@ ENV HF_HOME=/home/user/.cache/huggingface \
42
  # ---- 7️⃣ Healthcheck ---------------------------------------------------------
43
  HEALTHCHECK CMD curl -f http://localhost:7860/health || exit 1
44
 
 
 
 
 
 
 
45
  # ---- 8️⃣ Entry Point ---------------------------------------------------------
46
  EXPOSE 7860
47
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
42
  # ---- 7️⃣ Healthcheck ---------------------------------------------------------
43
  HEALTHCHECK CMD curl -f http://localhost:7860/health || exit 1
44
 
45
+ # ---- 7️⃣ Cleanup ---------------------------------------------------------
46
+ RUN rm -rf /home/user/.cache/huggingface/hub/models--*mistral*
47
+ RUN rm -rf /home/user/.cache/pip
48
+
49
+ RUN du -sh /home/user/.cache/huggingface || true
50
+
51
  # ---- 8️⃣ Entry Point ---------------------------------------------------------
52
  EXPOSE 7860
53
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]