Skip to content

Instantly share code, notes, and snippets.

@chorn
Created March 22, 2016 20:23
Show Gist options
  • Save chorn/9581ba0d7fb7469f127c to your computer and use it in GitHub Desktop.
Save chorn/9581ba0d7fb7469f127c to your computer and use it in GitHub Desktop.
FROM mhart/alpine-node:0.12
MAINTAINER Chris Horn <chorn@chorn.com>
ENV ETHERPAD_VERSION=1.5.7
ARG ETHERPAD_PLUGINS="ep_adminpads ep_authorship_toggle ep_delete_empty_pads ep_font_family ep_headings2 ep_markdown ep_resizable_bars ep_syntaxhighlighting"
WORKDIR /app
ADD https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION}.tar.gz etherpad-lite.tar.gz
RUN apk add --quiet --update --no-cache curl
RUN tar xzf etherpad-lite.tar.gz && mv etherpad-lite-${ETHERPAD_VERSION}/* .
ADD settings.json settings.json
RUN ./bin/installDeps.sh
RUN npm install sqlite3 $ETHERPAD_PLUGINS
RUN find /app /usr/lib/node_modules/ -type d -iname doc -or -iname docs -or -iname deb-src -or -iname tests -or -iname man -print0 | xargs -r -0 rm -fr
RUN find /tmp /root /etc/ssl /var/cache -type f -delete
RUN rm -fr *.md *.bat *.gz etherpad-lite-${ETHERPAD_VERSION} /usr/include /usr/share/man /usr/share/zsh /usr/lib/node_modules/npm/html
EXPOSE 9001
# CMD ["/bin/sleep", "9999"]
ENTRYPOINT ["./bin/run.sh", "--root"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment