From 5e0602c5eefe8e7ff0c80657440b0f83becc6501 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 14 Apr 2026 13:42:03 +0100 Subject: [PATCH] Fix Docker build: use production-only workspace config (#7514) The pnpm-workspace.yaml references admin, doc, and ui packages that aren't copied into the production Docker image. This caused pnpm install warnings and incomplete dependency resolution, which broke ueberdb2's modular build (missing bin symlinks, broken module paths). Fix: overwrite pnpm-workspace.yaml in the production stage with a minimal version that only lists the packages present in the image (src and bin). Co-authored-by: Claude Opus 4.6 (1M context) --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index d33742966..2ad2936fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -171,6 +171,11 @@ ARG ETHERPAD_GITHUB_PLUGINS= ENV NODE_ENV=production ENV ETHERPAD_PRODUCTION=true +# The full pnpm-workspace.yaml references admin, doc, ui which are not +# needed at runtime. Overwrite it with a production-only version so +# pnpm install doesn't warn about missing workspace directories. +RUN printf 'packages:\n - src\n - bin\n' > pnpm-workspace.yaml + COPY --chown=etherpad:etherpad ./src ./src COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/src/templates/admin ./src/templates/admin COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/src/static/oidc ./src/static/oidc