feat(docker): use pre-built base image to speed up cold builds #52

Merged
mik-tf merged 1 commit from development_base_image into development 2026-03-11 22:20:53 +00:00
Owner

Summary

  • Slim down Dockerfile.base to only Rust toolchain + WASM tools
  • build-local.sh uses hero_zero:base with automatic fallback to rust:1.93-bookworm
  • WASM step skips tool installs when already present in base image
  • Add make base target to build and push the base image

Impact

  • Cold builds (CI, fresh workspace): ~5-6 min faster
  • Warm builds: ~30s faster (tool detection skip)
  • Zero risk: automatic fallback if base image unavailable

Test plan

  • make base builds and pushes hero_zero:base
  • make dist uses base image (check build output for image name)
  • BUILD_IMAGE=rust:1.93-bookworm make dist works as fallback
  • WASM step skips installs when tools present

Closes #51

🤖 Generated with Claude Code

## Summary - Slim down `Dockerfile.base` to only Rust toolchain + WASM tools - `build-local.sh` uses `hero_zero:base` with automatic fallback to `rust:1.93-bookworm` - WASM step skips tool installs when already present in base image - Add `make base` target to build and push the base image ## Impact - Cold builds (CI, fresh workspace): **~5-6 min faster** - Warm builds: ~30s faster (tool detection skip) - Zero risk: automatic fallback if base image unavailable ## Test plan - [ ] `make base` builds and pushes `hero_zero:base` - [ ] `make dist` uses base image (check build output for image name) - [ ] `BUILD_IMAGE=rust:1.93-bookworm make dist` works as fallback - [ ] WASM step skips installs when tools present Closes https://forge.ourworld.tf/lhumina_code/hero_services/issues/51 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(docker): use pre-built base image to speed up cold builds
Some checks failed
Build and Test / build (pull_request) Failing after 35s
77e434c63b
- Slim down Dockerfile.base: only Rust toolchain + WASM tools (no Bun,
  no ONNX, no SSH — those are handled by build-local.sh or run on host)
- build-local.sh uses hero_zero:base with automatic fallback to
  rust:1.93-bookworm if base image is unavailable
- WASM step skips tool installs when already present in base image
- Add `make base` target to build and push the base image

Saves ~5-6 min on cold builds (CI, fresh workspace).
Zero impact on warm builds (tools detected and skipped).

#51

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mik-tf force-pushed development_base_image from 77e434c63b
Some checks failed
Build and Test / build (pull_request) Failing after 35s
to 49f1bb7e96
Some checks failed
Build and Test / build (pull_request) Failing after 29s
2026-03-11 22:20:34 +00:00
Compare
mik-tf changed title from WIP: Use pre-built base image to speed up cold builds to feat(docker): use pre-built base image to speed up cold builds 2026-03-11 22:20:47 +00:00
mik-tf merged commit feb6d23572 into development 2026-03-11 22:20:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_services!52
No description provided.