Commit 804939e
authored
docker: add STAGE build arg to Dockerfile (#1104)
## Summary
- Add `STAGE` build arg to the root Dockerfile so the compiler bootstrap
stage is configurable (default: 0)
- Forward `STAGE` env var from `docker_build.sh` to the `skiplang` and
`skip` bake targets
- Usage: `STAGE=1 bin/docker_build.sh skiplang`
## Test plan
- [x] Verified `STAGE=1 bin/docker_build.sh --dry-run skiplang` passes
`--set skiplang.args.STAGE=1` to bake
- [x] Verified default (no STAGE) doesn't add any extra args
- [x] Verified full build succeeds with default STAGE
🤖 Generated with [Claude Code](https://claude.com/claude-code)2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
| |||
0 commit comments