fix(web): skip install scripts in container deps stage #43

Merged
vince merged 1 commit from codex/fix-website-container-build into main 2026-06-20 13:16:29 +02:00
Owner

Summary

  • Prevent workspace lifecycle scripts from running during the pruned dependency install stage of the web production image.
  • Tighten the workspace-boundary test so it asserts the exact install command including --ignore-scripts.

Why

After packages/ui moved to a submodule, bun install in the JSON-only Docker/Turbo prune stage ran the UI package prepare script before tsconfig.build.json and source files were present. That broke production image rebuilds.

Changes

  • Add --ignore-scripts to the dependency-stage bun install.
  • The later build stage still runs the real package builds with the full pruned source tree.
  • Update the Containerfile boundary test to guard this exact command.

Testing

  • bun run check
  • bun run --cwd apps/web test src/lib/workspace-boundary.test.ts
  • podman build -t localhost/dimensionlab-website:latest -f apps/web/Containerfile .
  • Independent sub-agent review and re-review: no blocking findings.

Notes

A rollback tag exists locally: localhost/dimensionlab-website:rollback-20260620130734.

## Summary - Prevent workspace lifecycle scripts from running during the pruned dependency install stage of the web production image. - Tighten the workspace-boundary test so it asserts the exact install command including `--ignore-scripts`. ## Why After `packages/ui` moved to a submodule, `bun install` in the JSON-only Docker/Turbo prune stage ran the UI package `prepare` script before `tsconfig.build.json` and source files were present. That broke production image rebuilds. ## Changes - Add `--ignore-scripts` to the dependency-stage `bun install`. - The later build stage still runs the real package builds with the full pruned source tree. - Update the Containerfile boundary test to guard this exact command. ## Testing - `bun run check` - `bun run --cwd apps/web test src/lib/workspace-boundary.test.ts` - `podman build -t localhost/dimensionlab-website:latest -f apps/web/Containerfile .` - Independent sub-agent review and re-review: no blocking findings. ## Notes A rollback tag exists locally: `localhost/dimensionlab-website:rollback-20260620130734`.
vince added 1 commit 2026-06-20 13:09:29 +02:00
vince force-pushed codex/fix-website-container-build from d16ddc4561 to 631e789546 2026-06-20 13:14:54 +02:00 Compare
vince merged commit b0b09eb8ad into main 2026-06-20 13:16:29 +02:00
Sign in to join this conversation.
No description provided.