From 5fa7ca9978b4c6aed98d83d9e36d5d1e1d82d512 Mon Sep 17 00:00:00 2001 From: Opnxng Date: Sun, 9 Jun 2024 11:04:39 +0800 Subject: [PATCH] Updated Etherpad --- dockerfiles/etherpad.Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfiles/etherpad.Dockerfile b/dockerfiles/etherpad.Dockerfile index f05006f..dd52747 100755 --- a/dockerfiles/etherpad.Dockerfile +++ b/dockerfiles/etherpad.Dockerfile @@ -1,7 +1,7 @@ FROM etherpad/etherpad:latest -ARG ETHERPAD_PLUGINS="ep_font_color ep_spellcheck ep_font_size ep_image_upload ep_embedded_hyperlinks2" +ARG ETHERPAD_PLUGINS="ep_font_color ep_spellcheck ep_font_size ep_image_upload ep_embedded_hyperlinks2 ep_adminpads3" RUN sed -i '/#innerdocbody {/a \ \ font-size: 18px;' ./src/static/css/iframe_editor.css -RUN { [ -z "${ETHERPAD_PLUGINS}" ] || \ - npm install --no-save ${ETHERPAD_PLUGINS}; } && \ - src/bin/installDeps.sh && \ - rm -rf ~/.npm +RUN bin/installDeps.sh && rm -rf ~/.npm && rm -rf ~/.local && rm -rf ~/.cache && \ + if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_LOCAL_PLUGINS}" ]; then \ + pnpm run plugins i ${ETHERPAD_PLUGINS} ${ETHERPAD_LOCAL_PLUGINS:+--path ${ETHERPAD_LOCAL_PLUGINS}}; \ + fi