You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docker): preserve workspace dir structure in runtime for pnpm symlinks
pnpm places each workspace package's deps in its own node_modules/
(e.g. apps/template/backend/node_modules/dotenv) with symlinks into
the root .pnpm virtual store. Flattening to /app/dist + /app/node_modules
puts Node in the wrong directory, so it never walks down to the
package-level node_modules and can't find runtime deps like dotenv.
Fix: copy both the root node_modules (virtual store) AND the package's
own node_modules into the runtime stage, then set WORKDIR to the
package path so Node's module resolution walks the correct tree.
0 commit comments