etherpad: nvm is very strange
This commit is contained in:
parent
f22bdecbc3
commit
579ce15e60
1 changed files with 2 additions and 4 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue