etherpad: try https://stackoverflow.com/a/66521281/1460422
This commit is contained in:
parent
d4c9b02f5b
commit
7597926498
1 changed files with 8 additions and 2 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue