Docker: Nuke all of `~/.npm` after installing packages
parent
aeb56dd594
commit
5946244bef
|
@ -68,11 +68,10 @@ WORKDIR "${EP_DIR}"
|
||||||
|
|
||||||
COPY --chown=etherpad:etherpad ./ ./
|
COPY --chown=etherpad:etherpad ./ ./
|
||||||
|
|
||||||
# install node dependencies for Etherpad
|
|
||||||
RUN src/bin/installDeps.sh && \
|
RUN src/bin/installDeps.sh && \
|
||||||
rm -rf ~/.npm/_cacache
|
{ [ -z "${ETHERPAD_PLUGINS}" ] || \
|
||||||
|
npm install --no-save ${ETHERPAD_PLUGINS}; } && \
|
||||||
RUN [ -z "${ETHERPAD_PLUGINS}" ] || npm install --no-save ${ETHERPAD_PLUGINS}
|
rm -rf ~/.npm
|
||||||
|
|
||||||
# Copy the configuration file.
|
# Copy the configuration file.
|
||||||
COPY --chown=etherpad:etherpad ./settings.json.docker "${EP_DIR}"/settings.json
|
COPY --chown=etherpad:etherpad ./settings.json.docker "${EP_DIR}"/settings.json
|
||||||
|
|
Loading…
Reference in New Issue