From 3098fcd8f56135ab43e000b528ae48d200a9a34f Mon Sep 17 00:00:00 2001 From: Martin van Es Date: Mon, 8 Jul 2024 09:16:02 +0200 Subject: [PATCH] Fix etherpad build --- sram-etherpad/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sram-etherpad/Dockerfile b/sram-etherpad/Dockerfile index a012e57..f8212d2 100644 --- a/sram-etherpad/Dockerfile +++ b/sram-etherpad/Dockerfile @@ -19,7 +19,10 @@ USER etherpad WORKDIR "${EP_DIR}" -RUN [ -z "${ETHERPAD_PLUGINS}" ] || npm install ${ETHERPAD_PLUGINS} +RUN bin/installDeps.sh && rm -rf ~/.npm && rm -rf ~/.local && rm -rf ~/.cache && \ + if [ ! -z "${ETHERPAD_PLUGINS}" ]; then \ + pnpm run plugins i ${ETHERPAD_PLUGINS}; \ + fi # EXPOSE 9001 # CMD ["node", "src/node/server.js"]