Commit 4da0591
authored
fix: use lockfile for reproducible builds and correct Dockerfile port comments (#365)
* 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)
* fix: use two-step uv sync for reproducible Docker builds
The single `uv sync` before COPY failed because hatchling needs
README.md (not yet copied). Split into two steps:
1. `uv sync --frozen --no-dev --no-install-project` — deps only
2. `uv sync --frozen --no-dev` — project install after full COPY
Also move `USER bedrock_agentcore` after both syncs so the venv
created by root remains writable for the project install step.1 parent 5de204a commit 4da0591
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
0 commit comments