service-etherpad/Dockerfile

40 lines
1.1 KiB
Text
Raw Normal View History

2017-07-07 15:02:43 +02:00
# Stable version of etherpad doesn't support npm 2
2020-12-11 09:41:59 +01:00
2020-06-05 13:19:58 +02:00
FROM node:12-slim
2019-02-23 17:58:58 +01:00
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
2017-07-07 15:02:43 +02:00
2021-01-04 11:55:42 +01:00
ENV ETHERPAD_VERSION 1.8.7
2017-07-07 15:02:43 +02:00
2019-08-19 17:29:55 +02:00
# RUN = docker run ... + docker commit
2017-07-07 15:02:43 +02:00
RUN apt-get update && \
2019-02-23 17:58:58 +01:00
apt-get install -y curl unzip mysql-client python netcat && \
2017-07-07 15:02:43 +02: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 17:58:58 +01:00
WORKDIR /opt/etherpad-lite
2017-07-07 15:02:43 +02:00
COPY parseurl.py /parseurl.py
2019-02-23 17:58:58 +01:00
COPY entrypoint.sh /entrypoint.sh
2017-07-07 15:02:43 +02:00
2019-02-23 17:58:58 +01:00
# Pre-install
2020-03-20 19:58:02 +01: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 \
&& npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_padwiki ep_comments_page ep_font_color ep_table_of_contents
# ep_mypads
2019-10-18 11:31:25 +02:00
2020-05-26 10:28:02 +02:00
# meta-données
2017-07-07 15:02:43 +02:00
VOLUME /opt/etherpad-lite/var
EXPOSE 9001
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bin/run.sh", "--root"]
2019-02-23 17:58:58 +01:00