Sdm0 commited on
Commit
3c52a25
·
verified ·
1 Parent(s): 1e55a9b

Deploy 79b3f2dc

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -10
Dockerfile CHANGED
@@ -69,20 +69,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
69
  COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
70
  COPY --from=builder /usr/local/bin /usr/local/bin
71
 
72
- # Fallback: multi-stage COPY may not transfer packages reliably on HF Spaces build infra.
73
- # Install ragas+litellm normally (with deps) so transitive dependencies like
74
- # numpy, datasets, etc. are available at import time.
75
- RUN pip install --no-cache-dir langfuse "ragas>=0.3,<0.4" litellm
76
-
77
- # Verify critical packages are importable
78
- RUN python -c "import chromadb; print('chromadb OK')"
79
- RUN python -c "import ragas; print(f'ragas {ragas.__version__} OK')"
80
- RUN python -c "import litellm; print(f'litellm {litellm.__version__} OK')"
81
-
82
  # Copy application code
83
  COPY . .
84
  COPY docker-entrypoint.sh /docker-entrypoint.sh
85
 
 
 
 
86
  # Non-root user
87
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app \
88
  && chmod +x /docker-entrypoint.sh \
 
69
  COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
70
  COPY --from=builder /usr/local/bin /usr/local/bin
71
 
 
 
 
 
 
 
 
 
 
 
72
  # Copy application code
73
  COPY . .
74
  COPY docker-entrypoint.sh /docker-entrypoint.sh
75
 
76
+ # Install ragas+litellm as fallback in case multi-stage COPY missed them
77
+ RUN pip install --no-cache-dir ragas litellm
78
+
79
  # Non-root user
80
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app \
81
  && chmod +x /docker-entrypoint.sh \