Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (29 sloc) 1.27 KB
FROM ubuntu:bionic
# install dir
# base
RUN apt-get update &&\
apt-get -y install gzip git-core curl python libssl-dev pkg-config build-essential nodejs npm python3-pip &&\
pip3 install dumb-init &&\
npm install sqlite3 ep_headings ep_monospace_default ep_print &&\
rm -rf /var/lib/apt/lists/*
# get and install nodejs
#RUN curl -sL | bash -
#RUN apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*
# get dumb-init, to have nodejs app terminate properly (signal handling)
#RUN curl -sL -O && dpkg -i dumb-init_*.deb && rm dumb-init_*.deb
# get and install etherpad
RUN git clone git:// &&\
sed '/' etherpad-lite/bin/ -i &&\
useradd -c "Etherpad user" -d /dev/null -s /bin/false etherpad &&\
chown -R etherpad:etherpad . &&\
# push our config file (simple sqlite config)
ADD config/ /opt/etherpad-lite/
# data volume for persistency of pads
VOLUME /opt/etherpad-lite/var
WORKDIR /opt/etherpad-lite/bin
# startup script
ADD /opt/etherpad-lite/bin/
CMD ["/opt/etherpad-lite/bin/"]