fix: Always install npm@6 for correct package-lock.json version.

This commit is contained in:
SamTV12345 2023-12-15 21:37:46 +01:00
parent ae91e87c61
commit 41bc3951fa

View file

@ -77,6 +77,7 @@ RUN mkdir -p "${EP_DIR}" && chown etherpad:etherpad "${EP_DIR}"
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
RUN \
mkdir -p /usr/share/man/man1 && \
npm install npm@6 -g && \
apk update && apk upgrade && \
apk add \
ca-certificates \
@ -100,7 +101,6 @@ COPY --chown=etherpad:etherpad ./ ./
# rules.
RUN { [ -z "${ETHERPAD_PLUGINS}" ] || \
npm install --no-save --legacy-peer-deps ${ETHERPAD_PLUGINS}; } && \
npm install npm@6 -g \
src/bin/installDeps.sh && \
rm -rf ~/.npm