etherpad: nvm is very strange

This commit is contained in:
Starbeamrainbowlabs 2021-04-18 14:16:42 +01:00
parent f22bdecbc3
commit 579ce15e60
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ RUN install_packages git ca-certificates curl
RUN mkdir -p /srv \
&& curl -sSL -o /srv/nvm_install.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh \
&& git clone --branch master https://github.com/ether/etherpad-lite.git /srv/etherpad \
&& cd /srv/etherpad && git checkout "${COMMIT}" \
&& git status
@ -20,7 +19,6 @@ RUN mkdir -p /srv \
FROM ${REPO_LOCATION}minideb
COPY --from=builder /srv/nvm_install.sh /srv/nvm_install.sh
COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/
ENV PYTHON /usr/bin/python3
@ -29,8 +27,8 @@ ENV PYTHON /usr/bin/python3
# We speculate that our problems with Etherpad are because we're using a newer version of Node.js..... :-/
# nvm needs curl to download versions of Node.js
RUN install_packages ca-certificates curl \
RUN bash /srv/nvm_install.sh || true
RUN install_packages ca-certificates curl
RUN curl -sSL -o - https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash /srv/nvm_install.sh || true
RUN mkdir -p /.npm \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install lts/erbium \