Skip to content

fix(docker): copy server/node_modules to production stage#65

Merged
steilerDev merged 1 commit into
betafrom
fix/docker-missing-server-node-modules
Feb 13, 2026
Merged

fix(docker): copy server/node_modules to production stage#65
steilerDev merged 1 commit into
betafrom
fix/docker-missing-server-node-modules

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

Fixes runtime crash in Docker container where drizzle-orm couldn't be found.

Root cause: drizzle-orm is installed in server/node_modules/ (not hoisted to root) due to npm workspace constraints. The Dockerfile only copied root node_modules/ to the production stage, missing the workspace-specific dependencies.

Fix: Add COPY --from=builder /app/server/node_modules/ server/node_modules/ to copy workspace-specific dependencies.

Test plan

  • Build Docker image
  • Run container — verify no ERR_MODULE_NOT_FOUND at startup
  • Verify app serves correctly at port 3000

🤖 Generated with Claude Code

…n stage

drizzle-orm is installed in server/node_modules/ rather than the root
node_modules/ due to npm workspace hoisting constraints. The production
Docker stage only copied root node_modules/, causing a runtime crash
with ERR_MODULE_NOT_FOUND for drizzle-orm.

Co-Authored-By: Claude orchestrator (Opus 4.6) <noreply@anthropic.com>
@steilerDev steilerDev merged commit c75665e into beta Feb 13, 2026
3 checks passed
@steilerDev steilerDev deleted the fix/docker-missing-server-node-modules branch February 13, 2026 13:13
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.7.0-beta.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants