From 3a3b55cfd59b3f5fed453899c9dc58ee8a6ac628 Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Mon, 2 Mar 2026 14:20:44 -0500 Subject: [PATCH] fix: add .venv/bin to PATH in container Dockerfile uv sync ignores UV_SYSTEM_PYTHON=1 and always creates a .venv directory, so console scripts like opentelemetry-instrument are installed to /app/.venv/bin/ which is not on PATH. This causes container startup to fail with 'executable file not found in $PATH'. --- src/assets/container/python/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/container/python/Dockerfile b/src/assets/container/python/Dockerfile index 20d04017..a6c55db9 100644 --- a/src/assets/container/python/Dockerfile +++ b/src/assets/container/python/Dockerfile @@ -11,7 +11,8 @@ ENV UV_SYSTEM_PYTHON=1 \ PYTHONUNBUFFERED=1 \ DOCKER_CONTAINER=1 \ UV_DEFAULT_INDEX=${UV_DEFAULT_INDEX} \ - UV_INDEX=${UV_INDEX} + UV_INDEX=${UV_INDEX} \ + PATH="/app/.venv/bin:$PATH" RUN useradd -m -u 1000 bedrock_agentcore