Fix Docker runtime branding package#177
Merged
Merged
Conversation
markwylde
force-pushed
the
codex/fix-docker-branding-package
branch
from
July 8, 2026 18:56
9dec5dc to
5e85df6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/brandingworkspace package into the Docker runtime imagepackages/apiresolves@DarkAuth/brandingthrough its workspace symlinkProduction symptom
The v1.25.0 image starts migrations successfully, then the main
darkauthcontainer exits with:Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@DarkAuth/branding' imported from /app/packages/api/src/http/routers/userRouter.tsChecks
pnpm tidypnpm builddocker 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'))"