2017-07-07 13:02:43 +00:00
|
|
|
# Stable version of etherpad doesn't support npm 2
|
2020-06-05 11:19:58 +00:00
|
|
|
FROM node:12-slim
|
2019-02-23 16:58:58 +00:00
|
|
|
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
|
2017-07-07 13:02:43 +00:00
|
|
|
|
2020-06-05 10:33:50 +00:00
|
|
|
ENV ETHERPAD_VERSION 1.8.4
|
2017-07-07 13:02:43 +00:00
|
|
|
|
2019-08-19 15:29:55 +00:00
|
|
|
# RUN = docker run ... + docker commit
|
2017-07-07 13:02:43 +00:00
|
|
|
RUN apt-get update && \
|
2019-02-23 16:58:58 +00:00
|
|
|
apt-get install -y curl unzip mysql-client python netcat && \
|
2017-07-07 13:02:43 +00:00
|
|
|
rm -r /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
WORKDIR /opt/
|
|
|
|
|
|
|
|
RUN curl -SL \
|
|
|
|
https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION}.zip \
|
|
|
|
> etherpad.zip && unzip etherpad && \
|
|
|
|
rm etherpad.zip && \
|
|
|
|
mv etherpad-lite-${ETHERPAD_VERSION} etherpad-lite
|
|
|
|
|
2019-02-23 16:58:58 +00:00
|
|
|
WORKDIR /opt/etherpad-lite
|
2017-07-07 13:02:43 +00:00
|
|
|
|
|
|
|
COPY parseurl.py /parseurl.py
|
2019-02-23 16:58:58 +00:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2017-07-07 13:02:43 +00:00
|
|
|
|
2019-02-23 16:58:58 +00:00
|
|
|
# Pre-install
|
2020-03-20 18:58:02 +00:00
|
|
|
RUN bin/installDeps.sh && rm settings.json \
|
|
|
|
&& chmod +x /entrypoint.sh \
|
|
|
|
&& sed -i 's/^node/exec\ node/' bin/run.sh \
|
|
|
|
&& ln -s var/settings.json settings.json \
|
2020-07-31 14:42:17 +00:00
|
|
|
&& npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_mypads ep_padwiki ep_comments_page ep_font_color
|
2019-10-18 09:31:25 +00:00
|
|
|
|
2020-05-26 08:28:02 +00:00
|
|
|
# meta-données
|
2017-07-07 13:02:43 +00:00
|
|
|
VOLUME /opt/etherpad-lite/var
|
|
|
|
EXPOSE 9001
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["bin/run.sh", "--root"]
|
2019-02-23 16:58:58 +00:00
|
|
|
|