Nomearod Claude Opus 4.6 (1M context) commited on
Commit
8974e47
·
1 Parent(s): 47c5b20

fix(docker): ingest K8s corpus at build time for HF Spaces deploy

Browse files

Dockerfile only baked the FastAPI store. Adds a second ingest RUN that
mirrors the existing one, so corpus=k8s requests work on the live
Space after push.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -17,8 +17,9 @@ RUN pip install --no-cache-dir .
17
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
18
  RUN python -c "from sentence_transformers import CrossEncoder; CrossEncoder('cross-encoder/ms-marco-MiniLM-L-6-v2')"
19
 
20
- # Run ingestion at build time so the store is ready
21
  RUN python scripts/ingest.py --doc-dir data/tech_docs/ --store-path .cache/store
 
22
 
23
  # Give user 1000 ownership of build-time artifacts
24
  RUN chown -R user:user .cache/
 
17
  RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
18
  RUN python -c "from sentence_transformers import CrossEncoder; CrossEncoder('cross-encoder/ms-marco-MiniLM-L-6-v2')"
19
 
20
+ # Run ingestion at build time so both corpora stores are ready
21
  RUN python scripts/ingest.py --doc-dir data/tech_docs/ --store-path .cache/store
22
+ RUN python scripts/ingest.py --doc-dir data/k8s_docs/ --store-path .cache/store_k8s
23
 
24
  # Give user 1000 ownership of build-time artifacts
25
  RUN chown -R user:user .cache/