service-etherpad/Dockerfile

37 lines
915 B
Docker
Raw Normal View History

2017-07-07 13:02:43 +00:00
# Stable version of etherpad doesn't support npm 2
FROM debian:jessie
MAINTAINER Tony Motakis <tvelocity@gmail.com>
ENV ETHERPAD_VERSION 1.6.1
RUN apt-get update && \
apt-get install -y curl unzip nodejs-legacy npm mysql-client && \
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
WORKDIR etherpad-lite
RUN bin/installDeps.sh && rm settings.json
COPY entrypoint.sh /entrypoint.sh
COPY parseurl.py /parseurl.py
RUN chmod +x /entrypoint.sh
2017-07-07 13:02:43 +00:00
RUN sed -i 's/^node/exec\ node/' bin/run.sh
VOLUME /opt/etherpad-lite/var
RUN ln -s var/settings.json settings.json
2017-11-15 21:49:09 +00:00
RUN npm install ep_author_neat ep_headings2 ep_set_title_on_pad
2017-07-07 13:02:43 +00:00
EXPOSE 9001
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bin/run.sh", "--root"]