mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 08:01:02 -04:00
Revert Dockerfile changes
This commit is contained in:
parent
8f608591e8
commit
5d31772642
1 changed files with 12 additions and 2 deletions
14
Dockerfile
14
Dockerfile
|
@ -91,8 +91,18 @@ WORKDIR "${EP_DIR}"
|
||||||
|
|
||||||
COPY --chown=etherpad:etherpad ./ ./
|
COPY --chown=etherpad:etherpad ./ ./
|
||||||
|
|
||||||
RUN { [ -z "${ETHERPAD_PLUGINS}" ] || /bin/bash -c 'ARR_PLUGINS=($ETHERPAD_PLUGINS) && jq -n "{plugins: \$ARGS.positional}" --args ${ARR_PLUGINS[@]}'; } > var/installed_plugins.json && \
|
# Plugins must be installed before installing Etherpad's dependencies, otherwise
|
||||||
src/bin/installDeps.sh &&
|
# npm will try to hoist common dependencies by removing them from
|
||||||
|
# src/node_modules and installing them in the top-level node_modules. As of
|
||||||
|
# v6.14.10, npm's hoist logic appears to be buggy, because it sometimes removes
|
||||||
|
# dependencies from src/node_modules but fails to add them to the top-level
|
||||||
|
# node_modules. Even if npm correctly hoists the dependencies, the hoisting
|
||||||
|
# seems to confuse tools such as `npm outdated`, `npm update`, and some ESLint
|
||||||
|
# rules.
|
||||||
|
RUN { [ -z "${ETHERPAD_PLUGINS}" ] || \
|
||||||
|
npm install --no-save --legacy-peer-deps ${ETHERPAD_PLUGINS}; } && \
|
||||||
|
src/bin/installDeps.sh && \
|
||||||
|
rm -rf ~/.npm
|
||||||
|
|
||||||
# Copy the configuration file.
|
# Copy the configuration file.
|
||||||
COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json
|
COPY --chown=etherpad:etherpad ${SETTINGS} "${EP_DIR}"/settings.json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue