Skip to content

build(deploy): ship only runtime dependencies in the images - #25

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11867-keep-build-only-tools-out-of-the-runtime-images-so-they-pass
Oct 31, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11867-keep-build-only-tools-out-of-the-runtime-images-so-they-pass

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-11867

What changed

  • The Dockerfile splits a source stage from two installs: the full install still feeds the web build, and a new deps stage runs bun install --production for the hub and sidecar images.
  • better-auth lists drizzle-kit as an optional peer, so deps also removes drizzle-kit and its esbuild binaries after installing; only migration generation uses them, and nothing at runtime imports them.
  • drizzle-kit leaves the hub's runtime dependencies (the root dev dependency keeps db:generate working); @corbits/react-ui becomes a coder runtime dependency, because the hub resolves it at startup; the web build moves to Vite 6.4.5.

How it was verified

  • A manual publish run on this branch builds both images for amd64 and arm64 and both pass the Trivy scan (critical and high, fixable), which failed on main before.
  • bun run lint, typecheck, pins:verify, format:check and test (66 pass) pass.
  • Not yet run: starting the hub and a sidecar from the new images.

@linear-code

linear-code Bot commented Oct 31, 2026

Copy link
Copy Markdown

CL-11867

@corbits-triage

corbits-triage Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Notes:

  • changes sensitive paths: ci: deploy/Dockerfile, locks: bun.lock

Triage will approve, request review.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit aef4346 Oct 31, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-11867-keep-build-only-tools-out-of-the-runtime-images-so-they-pass branch October 31, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant