etherpad: make docer container more like official etherpad docker container

This commit is contained in:
Starbeamrainbowlabs 2021-03-17 02:17:55 +00:00
parent a75381e512
commit b709b36864
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -14,23 +14,23 @@ RUN mkdir -p /srv \
&& cd /srv/etherpad && git checkout "${COMMIT}" \
&& git status
ENV PYTHON /usr/bin/python3
RUN cd /srv/etherpad \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& npm install \
&& npm install sqlite3 \
&& rm -rf /srv/etherpad/.git
# The rm -rf there is to save some space in the resulting container
###############################################################################
FROM ${REPO_LOCATION}minideb-node
COPY --from=builder /srv/etherpad /srv/etherpad
COPY settings.json /srv/etherpad/
ENV PYTHON /usr/bin/python3
RUN mkdir -p /.npm && chown -R 70:70 /.npm /srv/etherpad
RUN cd /srv/etherpad \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& src/bin/installDeps.sh \
&& npm install sqlite3 \
&& rm -rf /srv/etherpad/.git /.npm/_cacache
# The rm -rf there is to save some space in the resulting container
USER 70:70