Skip to content

Commit 571a610

Browse files
authored
fix: add .venv/bin to PATH in container Dockerfile (#471)
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'.
1 parent f2942dd commit 571a610

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/assets/container/python/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ENV UV_SYSTEM_PYTHON=1 \
1111
PYTHONUNBUFFERED=1 \
1212
DOCKER_CONTAINER=1 \
1313
UV_DEFAULT_INDEX=${UV_DEFAULT_INDEX} \
14-
UV_INDEX=${UV_INDEX}
14+
UV_INDEX=${UV_INDEX} \
15+
PATH="/app/.venv/bin:$PATH"
1516

1617
RUN useradd -m -u 1000 bedrock_agentcore
1718

0 commit comments

Comments
 (0)