31 lines
814 B
Docker
31 lines
814 B
Docker
# Stable version of etherpad doesn't support npm 2
|
|
FROM debian:jessie
|
|
MAINTAINER Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y --no-install-recommends \
|
|
gzip git curl python libssl-dev pkg-config build-essential unzip \
|
|
nodejs-legacy npm postgresql-client-9.4
|
|
RUN rm -r /var/lib/apt/lists/*
|
|
|
|
WORKDIR /opt/
|
|
|
|
ENV ETHERPAD_VERSION 1.5.7
|
|
|
|
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
|
|
RUN sed -i 's/^node/exec\ node/' bin/run.sh
|
|
RUN npm install ep_mypads
|
|
|
|
# VOLUME /opt/etherpad-lite/var
|
|
COPY settings.json settings.json
|
|
|
|
EXPOSE 9001
|
|
CMD ["bin/run.sh", "--root"]
|