forked from tvelocity/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 864 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:9
MAINTAINER Tony Motakis <[email protected]>
ENV ETHERPAD_VERSION 1.6.6
ENV NODE_ENV production
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl unzip mysql-client node-pg postgresql-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
RUN sed -i 's/^node/exec\ node/' bin/run.sh
# OpenShift runs containers as non-root
RUN chmod g+rwX,o+rwX -R .
VOLUME /opt/etherpad-lite/var
RUN ln -s var/settings.json settings.json
EXPOSE 9001
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bin/run.sh", "--root"]