Adopt lean service-base image in services Container file #1689
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 281 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1689"
general
weight: 0.35
mkumatag
Description
This PR moves every service image onto the new lean
service-baseimage (v0.0.48, up fromv0.0.45). Each service now installs its own dependencies in its ownContainerfile, so the base image no longer has to carry service specific pkgs.Changes
Base image bump
chatbot,digitize,extract,similarity,summarizeandtranslatenow useFROM icr.io/ai-services-cicd/service-base:v0.0.48.Digitize
services/digitize/Containerfileinstalls the system packages docling needs:lcms2-devel,openblas-devel,freetype,libicu,libjpeg-turbo, andspatialindex-develfrom EPEL.services/digitize/requirements.txtnow lists the docling and ML stack (docling,docling-core,docling-ibm-models,torch,torchvision,transformers,rapidocr, and others), all pinned.services/digitize/download_docling_models.pydownloads the Layout and TableFormer models at build time intoDOCLING_MODELS_PATH(/var/docling-models). The Hugging Face cache is deleted afterwards.HF_HUB_DISABLE_XET=1for the model download step. This avoids a_PyImport_Initfatal error caused byhf-xetstarting its Tokio runtime duringhuggingface_hubimports.Extract and Translate
Containerfiles now run the pip install step that was previously commented out.requirements.txtfiles:-
services/extract/requirements.txt:jsonschema==4.26.0-
services/translate/requirements.txt:httpx==0.28.1Pip cleanup in service images
ensurepip, install requirements, purge the cache, then remove pip again so the runtime image stays pip-free.Docs
docs/proposals/lean-service-base-image.mdnow referencesservice-base:v0.0.48.Type of change
Testing
service-base:v0.0.48/var/docling-modelspipis not present in the final images