mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-06 04:36:17 +02:00
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) <noreply@anthropic.com>
This commit is contained in:
parent
df1377982f
commit
5e0602c5ee
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user