Skip to content

Commit 9b7cff8

Browse files
authored
Clear apk and pnpm cache after installation of packages (#7059)
1 parent 215bbc6 commit 9b7cff8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ RUN \
107107
curl \
108108
git \
109109
${INSTALL_ABIWORD:+abiword abiword-plugin-command} \
110-
${INSTALL_SOFFICE:+libreoffice openjdk8-jre libreoffice-common}
110+
${INSTALL_SOFFICE:+libreoffice openjdk8-jre libreoffice-common} && \
111+
rm -rf /var/cache/apk/*
111112

112113
USER etherpad
113114

@@ -172,7 +173,8 @@ RUN bash -c ./bin/installLocalPlugins.sh
172173
RUN bin/installDeps.sh && \
173174
if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_GITHUB_PLUGINS}" ]; then \
174175
pnpm run plugins i ${ETHERPAD_PLUGINS} ${ETHERPAD_GITHUB_PLUGINS:+--github ${ETHERPAD_GITHUB_PLUGINS}}; \
175-
fi
176+
fi && \
177+
pnpm store prune
176178

177179
# Copy the configuration file.
178180
COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json

0 commit comments

Comments
 (0)