Spaces:
Running
Running
deploy: rename Dockerfile.hf -> Dockerfile on the Space side
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -38,9 +38,14 @@ RUN mkdir -p config core inference retrieval interfaces ingestion utils evaluati
|
|
| 38 |
&& touch retrieval/__init__.py interfaces/__init__.py ingestion/__init__.py \
|
| 39 |
&& touch utils/__init__.py evaluation/__init__.py app/__init__.py
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
RUN uv venv /app/.venv \
|
| 42 |
&& uv pip install --python /app/.venv/bin/python \
|
| 43 |
-
-e ".[api,embeddings-local
|
| 44 |
|
| 45 |
# --- runtime ----------------------------------------------------------------
|
| 46 |
FROM python:3.11-slim AS runtime
|
|
|
|
| 38 |
&& touch retrieval/__init__.py interfaces/__init__.py ingestion/__init__.py \
|
| 39 |
&& touch utils/__init__.py evaluation/__init__.py app/__init__.py
|
| 40 |
|
| 41 |
+
# Intentionally skip [pii] extras -- the regex patterns in utils/pii.py
|
| 42 |
+
# already cover every BYOK key shape (Groq / OpenAI / Anthropic / HF / Vercel
|
| 43 |
+
# / Qdrant JWT / Qdrant management). Adding Presidio would pull spaCy
|
| 44 |
+
# en_core_web_lg (~770 MB) which auto-downloads at runtime and crashes the
|
| 45 |
+
# container on the CPU Basic Space when the package installer is absent.
|
| 46 |
RUN uv venv /app/.venv \
|
| 47 |
&& uv pip install --python /app/.venv/bin/python \
|
| 48 |
+
-e ".[api,embeddings-local]"
|
| 49 |
|
| 50 |
# --- runtime ----------------------------------------------------------------
|
| 51 |
FROM python:3.11-slim AS runtime
|