This commit is contained in:
Starbeamrainbowlabs 2021-04-18 15:02:07 +01:00
parent d4c9b02f5b
commit 7597926498
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,9 @@ COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/
ENV PYTHON /usr/bin/python3
ENV NVM_DIR /root/.nvm
ENV NODE_VERSION lts/erbium
# lts-erbium = Node.js 12.x
# 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
@ -30,8 +33,11 @@ ENV PYTHON /usr/bin/python3
RUN install_packages ca-certificates curl
RUN curl -sSL -o - https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash || true
RUN mkdir -p /.npm \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install lts/erbium \
&& chmod +x $HOME/.nvm/nvm.sh && \
&& source $HOME/.nvm/nvm.sh && \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& cd /srv/etherpad \
&& install_packages python3 make gcc g++ libc-dev libc++-dev \
&& ln -s /usr/bin/python3 /usr/bin/python \