Skip to content

fix: copy full app in Docker — pnpm symlinks break selective copy - #13

Merged
stubbi merged 1 commit into
mainfrom
fix/docker-copy-full-app
Mar 21, 2026
Merged

fix: copy full app in Docker — pnpm symlinks break selective copy#13
stubbi merged 1 commit into
mainfrom
fix/docker-copy-full-app

Conversation

@stubbi

@stubbi stubbi commented Mar 21, 2026

Copy link
Copy Markdown

pnpm workspace symlinks cause ERR_MODULE_NOT_FOUND with selective COPY. Use full /app copy instead.

pnpm workspaces use symlinks in each package's node_modules to resolve
dependencies. Selective dist-only COPY misses these symlinks, causing
ERR_MODULE_NOT_FOUND for drizzle-orm and other deps at runtime.

Copy the full /app directory instead. .dockerignore controls what
enters the build context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@stubbi
stubbi merged commit 36526f1 into main Mar 21, 2026
@stubbi
stubbi deleted the fix/docker-copy-full-app branch March 21, 2026 23:04
github-actions Bot pushed a commit that referenced this pull request Mar 23, 2026
#13)

pnpm workspaces use symlinks in each package's node_modules to resolve
dependencies. Selective dist-only COPY misses these symlinks, causing
ERR_MODULE_NOT_FOUND for drizzle-orm and other deps at runtime.

Copy the full /app directory instead. .dockerignore controls what
enters the build context.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stubbi added a commit that referenced this pull request Apr 17, 2026
#13)

pnpm workspaces use symlinks in each package's node_modules to resolve
dependencies. Selective dist-only COPY misses these symlinks, causing
ERR_MODULE_NOT_FOUND for drizzle-orm and other deps at runtime.

Copy the full /app directory instead. .dockerignore controls what
enters the build context.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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