service-etherpad/Dockerfile

38 lines
1,022 B
Text
Raw Normal View History

2017-07-07 13:02:43 +00:00
# Stable version of etherpad doesn't support npm 2
2019-02-23 16:58:58 +00:00
FROM node:11-slim
MAINTAINER Glenn Y. Rolland <glenux@glenux.net>
2017-07-07 13:02:43 +00:00
2019-02-23 16:58:58 +00:00
ENV ETHERPAD_VERSION 1.7.5
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
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 && \
2019-08-19 15:29:55 +00:00
npm install ep_author_neat ep_headings2 ep_set_title_on_pad ep_adminpads ep_mypads padwiki
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