Skip to content

Fix Docker runtime branding package#177

Merged
markwylde merged 1 commit into
mainfrom
codex/fix-docker-branding-package
Jul 8, 2026
Merged

Fix Docker runtime branding package#177
markwylde merged 1 commit into
mainfrom
codex/fix-docker-branding-package

Conversation

@markwylde

Copy link
Copy Markdown
Member

Summary

  • copy the shared packages/branding workspace package into the Docker runtime image
  • fix production startup failure where packages/api resolves @DarkAuth/branding through its workspace symlink

Production symptom

The v1.25.0 image starts migrations successfully, then the main darkauth container exits with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@DarkAuth/branding' imported from /app/packages/api/src/http/routers/userRouter.ts

Checks

  • pnpm tidy
  • pnpm build
  • docker build -t darkauth:branding-runtime-fix .
  • docker run --rm --workdir /app/packages/api --entrypoint node darkauth:branding-runtime-fix -e "import('@DarkAuth/branding').then((m)=>{ if (!m.normalizeBrandingColors) process.exit(2); console.log('branding import ok'); })"
  • docker run --rm --workdir /app --entrypoint node darkauth:branding-runtime-fix -e "import('./packages/api/src/http/routers/userRouter.ts').then(()=>console.log('userRouter import ok'))"

@markwylde
markwylde force-pushed the codex/fix-docker-branding-package branch from 9dec5dc to 5e85df6 Compare July 8, 2026 18:56
@markwylde
markwylde merged commit d8c8417 into main Jul 8, 2026
22 checks passed
@markwylde
markwylde deleted the codex/fix-docker-branding-package branch July 8, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant