service-etherpad/Dockerfile

64 lines
1.4 KiB
Text
Raw 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
FROM node:18.1
2019-02-23 16:58:58 +00:00
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
2017-07-07 13:02:43 +00:00
ENV ETHERPAD_VERSION 1.8.18
2017-07-07 13:02:43 +00:00
2021-09-16 09:46:17 +00:00
RUN apt-get update \
2022-05-08 19:01:32 +00:00
&& apt-get install -y unzip mariadb-client netcat \
2021-09-16 09:46:17 +00:00
&& apt-get clean \
2022-05-08 19:01:32 +00:00
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& truncate -s 0 /var/log/*log
RUN cd /opt \
&& wget \
https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION}.zip \
-O etherpad.zip \
&& unzip etherpad \
2021-09-16 09:46:17 +00:00
&& rm etherpad.zip \
2022-05-08 19:01:32 +00:00
&& mv etherpad-lite-${ETHERPAD_VERSION} etherpad \
&& useradd --home-dir /opt/etherpad etherpad \
&& chown -R etherpad:etherpad /opt/etherpad
COPY --chown=etherpad parseurl.sh /parseurl.sh
COPY --chown=etherpad entrypoint.sh /entrypoint.sh
WORKDIR /opt/etherpad
USER etherpad
# Pre-install some plugins
RUN bin/installDeps.sh \
&& cd src \
&& npm install --save-prod \
github:alxndr42/ep_expiration \
ep_author_neat \
ep_headings2 \
ep_comments_page \
ep_font_color \
ep_offline_edit \
ep_prompt_for_name \
ep_workspaces \
ep_table_of_contents \
ep_adminpads \
&& cd .. \
2021-04-30 13:06:51 +00:00
&& rm settings.json \
&& ln -s var/settings.json settings.json
2021-01-04 11:38:15 +00:00
2022-05-08 19:01:32 +00:00
# ep_delete_after_delay \
# ep_set_title_on_pad \
# && sed -i 's/^node/exec\ node/' bin/run.sh \
# ep_mypads
2019-10-18 09:31:25 +00:00
2020-05-26 08:28:02 +00:00
# meta-données
2022-05-08 19:01:32 +00:00
VOLUME /opt/etherpad/var
2017-07-07 13:02:43 +00:00
EXPOSE 9001
2022-05-08 19:01:32 +00:00
2017-07-07 13:02:43 +00:00
ENTRYPOINT ["/entrypoint.sh"]
2022-05-08 19:01:32 +00:00
CMD ["./src/bin/run.sh"]
# bin/run.sh
2019-02-23 16:58:58 +00:00