2017-07-07 13:02:43 +00:00
|
|
|
# Stable version of etherpad doesn't support npm 2
|
2020-12-11 08:41:59 +00:00
|
|
|
|
2021-06-10 12:36:32 +00:00
|
|
|
FROM node:12
|
2019-02-23 16:58:58 +00:00
|
|
|
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
|
2017-07-07 13:02:43 +00:00
|
|
|
|
2021-04-30 09:31:18 +00:00
|
|
|
ENV ETHERPAD_VERSION 1.8.13
|
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 && \
|
2021-04-30 12:26:50 +00:00
|
|
|
apt-get install -y curl unzip mariadb-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
|
2021-04-30 13:06:51 +00:00
|
|
|
RUN chmod +x /entrypoint.sh \
|
2021-06-03 09:12:28 +00:00
|
|
|
&& npm install \
|
2021-01-13 14:07:45 +00:00
|
|
|
ep_author_neat ep_headings2 \
|
|
|
|
ep_set_title_on_pad ep_adminpads \
|
|
|
|
ep_workspaces ep_comments_page \
|
|
|
|
ep_font_color ep_table_of_contents \
|
2021-04-30 12:29:38 +00:00
|
|
|
ep_delete_after_delay \
|
2021-04-30 12:30:58 +00:00
|
|
|
ep_offline_edit \
|
2021-04-30 13:06:51 +00:00
|
|
|
ep_prompt_for_name \
|
|
|
|
&& bin/installDeps.sh \
|
|
|
|
&& sed -i 's/^node/exec\ node/' bin/run.sh \
|
|
|
|
&& rm settings.json \
|
|
|
|
&& ln -s var/settings.json settings.json
|
2021-01-04 11:38:15 +00:00
|
|
|
|
2021-01-04 11:36:29 +00:00
|
|
|
# ep_mypads
|
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
|
|
|
|