Fixed docker build.

This commit is contained in:
SamTV12345 2024-02-24 10:50:26 +01:00
parent 131c7e322b
commit 3b6a9ccdb3
3 changed files with 7 additions and 5 deletions

View file

@ -96,7 +96,8 @@ FROM build as development
COPY --chown=etherpad:etherpad ./src/package.json .npmrc ./src/pnpm-lock.yaml ./src/
RUN bin/installDeps.sh && { [ -z "${ETHERPAD_PLUGINS}" ] || \
pnpm install --workspace-root ${ETHERPAD_PLUGINS}; }
pnpm install --workspace-root ${ETHERPAD_PLUGINS}; } \
RUN pnpm run next-build
FROM build as production
@ -106,8 +107,7 @@ ENV ETHERPAD_PRODUCTION=true
COPY --chown=etherpad:etherpad ./src ./src
RUN bin/installDeps.sh && { [ -z "${ETHERPAD_PLUGINS}" ] || \
pnpm install --workspace-root ${ETHERPAD_PLUGINS}; } && \
rm -rf ~/.npm
pnpm install --workspace-root ${ETHERPAD_PLUGINS}; } && pnpm run next-build
# Copy the configuration file.
COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json