mekosotto commited on
Commit
14f78a8
·
1 Parent(s): c7e27e5

fix(deploy): seed_demo_artifacts.py is now fail-soft at build (entrypoint retries at runtime)

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -3
  2. Dockerfile.hf +4 -3
Dockerfile CHANGED
@@ -48,9 +48,10 @@ COPY docker-entrypoint.sh ./docker-entrypoint.sh
48
  RUN chmod +x /app/docker-entrypoint.sh
49
 
50
  # --- Demo-time stub artifacts (MRI 2D / MRI volumetric ONNX / EEG joblib /
51
- # clinical TF-IDF RAG / axial PNG fixture). Idempotent script — also
52
- # re-run by the entrypoint at container start to fill any missing slots.
53
- RUN python scripts/seed_demo_artifacts.py
 
54
 
55
  # Seed kb_sample docs into the knowledge_base directory; entrypoint will
56
  # build the FAISS index from these on first start.
 
48
  RUN chmod +x /app/docker-entrypoint.sh
49
 
50
  # --- Demo-time stub artifacts (MRI 2D / MRI volumetric ONNX / EEG joblib /
51
+ # clinical TF-IDF RAG / axial PNG fixture). Idempotent. Wrapped in
52
+ # `|| true` so a build-time failure here doesn't kill the image — the
53
+ # entrypoint re-runs the same script at container start.
54
+ RUN python scripts/seed_demo_artifacts.py || echo "WARN: seed_demo_artifacts failed at build, entrypoint will retry"
55
 
56
  # Seed kb_sample docs into the knowledge_base directory; entrypoint will
57
  # build the FAISS index from these on first start.
Dockerfile.hf CHANGED
@@ -48,9 +48,10 @@ COPY docker-entrypoint.sh ./docker-entrypoint.sh
48
  RUN chmod +x /app/docker-entrypoint.sh
49
 
50
  # --- Demo-time stub artifacts (MRI 2D / MRI volumetric ONNX / EEG joblib /
51
- # clinical TF-IDF RAG / axial PNG fixture). Idempotent script — also
52
- # re-run by the entrypoint at container start to fill any missing slots.
53
- RUN python scripts/seed_demo_artifacts.py
 
54
 
55
  # Seed kb_sample docs into the knowledge_base directory; entrypoint will
56
  # build the FAISS index from these on first start.
 
48
  RUN chmod +x /app/docker-entrypoint.sh
49
 
50
  # --- Demo-time stub artifacts (MRI 2D / MRI volumetric ONNX / EEG joblib /
51
+ # clinical TF-IDF RAG / axial PNG fixture). Idempotent. Wrapped in
52
+ # `|| true` so a build-time failure here doesn't kill the image — the
53
+ # entrypoint re-runs the same script at container start.
54
+ RUN python scripts/seed_demo_artifacts.py || echo "WARN: seed_demo_artifacts failed at build, entrypoint will retry"
55
 
56
  # Seed kb_sample docs into the knowledge_base directory; entrypoint will
57
  # build the FAISS index from these on first start.