From: Daniel <7558512+DerGenaue@users.noreply.github.com> Date: Tue, 21 Apr 2026 11:52:00 +0000 (+0200) Subject: fix(webui-docker): include workspace root node_modules so pnpm symlinks resolve ... X-Git-Tag: cli@v4.5.0~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=683476435546765d521f363f4ddb7451af268527;p=e-mobility-charging-stations-simulator.git fix(webui-docker): include workspace root node_modules so pnpm symlinks resolve (#1806) 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) --- diff --git a/ui/web/docker/Dockerfile b/ui/web/docker/Dockerfile index a554b541..63d24ef6 100644 --- a/ui/web/docker/Dockerfile +++ b/ui/web/docker/Dockerfile @@ -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