service-etherpad/Dockerfile

46 lines
1.1 KiB
Text
Raw Permalink Normal View History

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-01-19 15:03:35 +00:00
FROM node:14-slim
2019-02-23 16:58:58 +00:00
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
2017-07-07 13:02:43 +00:00
2021-01-04 10:55:42 +00:00
ENV ETHERPAD_VERSION 1.8.7
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 \
2021-01-13 14:07:45 +00:00
&& npm install \
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-01-04 11:38:15 +00:00
&& npm audit fix
# 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