Commit 56819c0
committed
perf: improve Docker layer caching for faster builds
Split dependency installation from source copy:
1. Copy manifests first (pyproject.toml, uv.lock)
2. Install deps with --no-install-project (cached layer)
3. Copy source code
4. Install project with --no-deps (fast)
This ensures source code changes don't invalidate the expensive
~2GB dependency installation layer.1 parent a450d7d commit 56819c0
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
23 | | - | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
0 commit comments