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