fix(deploy): seed_demo_artifacts.py is now fail-soft at build (entrypoint retries at runtime)
Browse files- Dockerfile +4 -3
- 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
|
| 52 |
-
#
|
| 53 |
-
|
|
|
|
| 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
|
| 52 |
-
#
|
| 53 |
-
|
|
|
|
| 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.
|