-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
45 lines (32 loc) · 914 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
35
36
37
38
39
40
41
42
43
44
45
#
# Etherpad lite Dockerfile
#
# Based on instructions from https://github.com/ether/etherpad-lite
#
FROM node:0.12
MAINTAINER Johannes Bornhold <[email protected]>
# Prepare etherpad
RUN mkdir /src
WORKDIR /src
# Dependencies based on docs
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install \
gzip git-core curl python libssl-dev pkg-config build-essential zip unzip
RUN wget https://github.com/ether/etherpad-lite/archive/master.zip &&\
unzip master &&\
rm -f master.zip &&\
mv etherpad-lite-master etherpad &&\
sed '/installDeps.sh/d' etherpad/bin/run.sh -i
WORKDIR /src/etherpad
# Install dependencies
RUN bin/installDeps.sh
RUN npm install sqlite3
# Add the settings
ADD config/ /src/etherpad/
# Install plugins
RUN npm install \
ep_headings \
ep_monospace_default \
ep_print
EXPOSE 9001
VOLUME ["/data"]
CMD ["bin/configure_and_run.sh"]