From b96a1a042f173c135d5f2fd0bd9d709b9c63a21f Mon Sep 17 00:00:00 2001 From: ilonagaja509-glitch Date: Fri, 22 May 2026 23:58:55 +0800 Subject: [PATCH] fix(docker): include anthropic, bedrock, azure-identity extras in image Docker containers often run in isolated networks without access to PyPI. The lazy-install mechanism fails silently in these environments, causing ImportError when users try to use Anthropic, Bedrock, or Azure providers. Add --extra anthropic, --extra bedrock, and --extra azure-identity to the Dockerfile's uv sync command so these provider packages are pre-installed in the published image. Fixes #30394 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6e8f0209636..721400f2056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,10 +75,14 @@ RUN npm install --prefer-offline --no-audit && \ # git), `[yc-bench]` (another git dep), and `[termux-all]` (Android # redundancy), none of which belong in the published container. # +# Provider packages (anthropic, bedrock, azure-identity) are included +# so Docker users can use these providers without requiring runtime +# lazy-install access to PyPI (often blocked in containerized envs). +# # The editable link is created after the source copy below. COPY pyproject.toml uv.lock ./ RUN touch ./README.md -RUN uv sync --frozen --no-install-project --extra all --extra messaging +RUN uv sync --frozen --no-install-project --extra all --extra messaging --extra anthropic --extra bedrock --extra azure-identity # ---------- Source code ---------- # .dockerignore excludes node_modules, so the installs above survive.