etherpad: check out specific commit & revert to npm install again

This commit is contained in:
Starbeamrainbowlabs 2021-03-17 01:27:00 +00:00
parent 0d9f1c43ef
commit a75381e512
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -1,17 +1,24 @@
ARG REPO_LOCATION ARG REPO_LOCATION
# ARG BASE_VERSION # ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb-node AS builder FROM ${REPO_LOCATION}minideb-node AS builder
# This is release 1.8.12
# It's important we checkout a specific commit, otherwise etherpad checks out the latest from develop O.o
ARG COMMIT=b99c2cae22f35a0c0831e2fef0719f115b486bd9
RUN install_packages git ca-certificates python3 make gcc g++ libc-dev libc++-dev RUN install_packages git ca-certificates python3 make gcc g++ libc-dev libc++-dev
RUN mkdir -p /srv && git clone --branch master https://github.com/ether/etherpad-lite.git /srv/etherpad RUN mkdir -p /srv \
&& git clone --branch master https://github.com/ether/etherpad-lite.git /srv/etherpad \
&& cd /srv/etherpad && git checkout "${COMMIT}" \
&& git status
ENV PYTHON /usr/bin/python3 ENV PYTHON /usr/bin/python3
RUN cd /srv/etherpad \ RUN cd /srv/etherpad \
&& ln -s /usr/bin/python3 /usr/bin/python \ && ln -s /usr/bin/python3 /usr/bin/python \
&& npm clean-install \ && npm install \
&& npm install sqlite3 \ && npm install sqlite3 \
&& rm -rf /srv/etherpad/.git && rm -rf /srv/etherpad/.git