From 41bc3951fad8bf185dfb6683c50308bb91dc16b5 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Fri, 15 Dec 2023 21:37:46 +0100 Subject: [PATCH] fix: Always install npm@6 for correct package-lock.json version. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index af3ac5cd0..0f42ab832 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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