]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix(webui-docker): include workspace root node_modules so pnpm symlinks resolve ...
authorDaniel <7558512+DerGenaue@users.noreply.github.com>
Tue, 21 Apr 2026 11:52:00 +0000 (13:52 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Apr 2026 11:52:00 +0000 (13:52 +0200)
ui/web/node_modules is a pnpm workspace package whose entries are
symlinks into ../../../node_modules/.pnpm/..., i.e. the workspace
root's store. The previous Dockerfile only copied ui/web/node_modules
into the final image, leaving every symlink dangling and breaking
`node start.js` with "Cannot find package 'finalhandler'".

Copy the workspace root node_modules to /node_modules in the final
image so the relative symlinks resolve.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ui/web/docker/Dockerfile

index a554b541bf967a91931d7d0002fe183befb806c4..63d24ef69c7532178a6e472e13ac823019f4c6bd 100644 (file)
@@ -13,6 +13,7 @@ RUN set -ex \
 FROM node:lts-alpine
 
 WORKDIR /usr/app
+COPY --from=builder /usr/builder/node_modules /node_modules
 COPY --from=builder /usr/builder/ui/web/package.json ./
 COPY --from=builder /usr/builder/ui/web/node_modules ./node_modules
 COPY --from=builder /usr/builder/ui/web/dist ./dist