Skip to content

Commit 7beb06c

Browse files
committed
fix: use lockfile for reproducible builds and correct port comments in Dockerfile
- Use `uv sync --frozen --no-dev` instead of `uv pip install -r pyproject.toml` so builds resolve dependencies from uv.lock deterministically (CONT-06) - Require uv.lock (drop glob wildcard) since frozen sync needs it - Fix port comments to match AgentCore Runtime service contract: 8080=HTTP, 8000=MCP, 9000=A2A (CONT-07)
1 parent df4eebc commit 7beb06c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/assets/container/python/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ ENV UV_SYSTEM_PYTHON=1 \
88
PYTHONUNBUFFERED=1 \
99
DOCKER_CONTAINER=1
1010

11-
COPY pyproject.toml uv.lock* ./
12-
RUN uv pip install -r pyproject.toml
11+
COPY pyproject.toml uv.lock ./
12+
RUN uv sync --frozen --no-dev
1313

1414
RUN useradd -m -u 1000 bedrock_agentcore
1515
USER bedrock_agentcore
1616

1717
COPY --chown=bedrock_agentcore:bedrock_agentcore . .
1818

19-
# 8080: AgentCore runtime endpoint
20-
# 8000: Local dev server (uvicorn)
21-
# 9000: OpenTelemetry collector
19+
# AgentCore Runtime service contract ports
20+
# https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-service-contract.html
21+
# 8080: HTTP Mode
22+
# 8000: MCP Mode
23+
# 9000: A2A Mode
2224
EXPOSE 8080 8000 9000
2325

2426
CMD ["opentelemetry-instrument", "python", "-m", "{{entrypoint}}"]

0 commit comments

Comments
 (0)