diff --git a/docs/container-builds.md b/docs/container-builds.md index 4abdde81c..3bca270e2 100644 --- a/docs/container-builds.md +++ b/docs/container-builds.md @@ -39,7 +39,8 @@ app/MyAgent/ ## Generated Dockerfile -The template uses `ghcr.io/astral-sh/uv:python3.12-bookworm-slim` as the base image with these design choices: +The template uses `public.ecr.aws/docker/library/python:3.12-slim` as the base image (with `uv` installed via +`pip install uv`) with these design choices: - **Layer caching**: Dependencies (`pyproject.toml`) are installed before copying application code - **Non-root**: Runs as `bedrock_agentcore` (UID 1000) diff --git a/src/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap b/src/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap index bd8eb132f..4bc6e9294 100644 --- a/src/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap +++ b/src/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap @@ -1,7 +1,9 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Dockerfile enableOtel rendering > renders opentelemetry-instrument CMD when enableOtel is true > Dockerfile-enableOtel-true 1`] = ` -"FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim +"FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm + +RUN pip install --no-cache-dir uv ARG UV_DEFAULT_INDEX ARG UV_INDEX @@ -39,7 +41,9 @@ CMD ["opentelemetry-instrument", "python", "-m", "main"] `; exports[`Dockerfile enableOtel rendering > renders plain python CMD when enableOtel is false > Dockerfile-enableOtel-false 1`] = ` -"FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim +"FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm + +RUN pip install --no-cache-dir uv ARG UV_DEFAULT_INDEX ARG UV_INDEX diff --git a/src/assets/container/python/Dockerfile b/src/assets/container/python/Dockerfile index ec82f36fa..60a0e87fc 100644 --- a/src/assets/container/python/Dockerfile +++ b/src/assets/container/python/Dockerfile @@ -1,4 +1,6 @@ -FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim +FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm + +RUN pip install --no-cache-dir uv ARG UV_DEFAULT_INDEX ARG UV_INDEX diff --git a/src/cli/commands/import/actions.ts b/src/cli/commands/import/actions.ts index 94323e30c..bceefa711 100644 --- a/src/cli/commands/import/actions.ts +++ b/src/cli/commands/import/actions.ts @@ -383,7 +383,8 @@ export async function handleImport(options: ImportOptions): Promise