From 9b7cff8af15511bd07219c35ab5d5859ceb734c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Sun, 3 Aug 2025 16:51:58 +0200 Subject: [PATCH] Clear apk and pnpm cache after installation of packages (#7059) --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e4a0dfb7..1b0a45d1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -107,7 +107,8 @@ RUN \ curl \ git \ ${INSTALL_ABIWORD:+abiword abiword-plugin-command} \ - ${INSTALL_SOFFICE:+libreoffice openjdk8-jre libreoffice-common} + ${INSTALL_SOFFICE:+libreoffice openjdk8-jre libreoffice-common} && \ + rm -rf /var/cache/apk/* USER etherpad @@ -172,7 +173,8 @@ RUN bash -c ./bin/installLocalPlugins.sh RUN bin/installDeps.sh && \ if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_GITHUB_PLUGINS}" ]; then \ pnpm run plugins i ${ETHERPAD_PLUGINS} ${ETHERPAD_GITHUB_PLUGINS:+--github ${ETHERPAD_GITHUB_PLUGINS}}; \ - fi + fi && \ + pnpm store prune # Copy the configuration file. COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json