build(container): use turbo pruned web workspace #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/turbo-pruned-container"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
apps/web/Containerfileto useturbo prune @dimensionlab/web --docker.out/jsonmanifest set, then build fromout/full.out/prune output in git and container contexts.Why
The monorepo package structure is now real, so the internal container should follow Turborepo deploy packaging instead of manually staging workspace manifests and copying the full repo into the build stage.
Changes
prunerstage to generate the web deploy subset.bun install --frozen-lockfile.out/full.Testing
bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.tsfailed before Containerfile changes on missingAS pruner.podman build -f apps/web/Containerfile ...failed before copying root TypeScript configs becausetsconfig.base.jsonwas missing in the pruned build context.bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.tsbun run checkpodman build --target deps -f apps/web/Containerfile .bun run test:qabun run db:checkpodman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-pruned ./and/api/dashboardfrom the built image./repo/apps/web/{build,dist,drizzle}present; no/repo/packagesor rootnode_modules.git diff --checkNotes