-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
31 lines (22 loc) · 889 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
FROM williamyeh/scala:2.11.6
MAINTAINER Ilya Stepanov <[email protected]>
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
RUN useradd -d /home/hackpad hackpad
RUN mkdir /home/hackpad
RUN chown hackpad:hackpad /home/hackpad
WORKDIR /home/hackpad
RUN git clone --depth 1 https://github.com/dropbox/hackpad.git && rm -rf hackpad/.git
ADD exports.sh hackpad/bin/exports.sh
RUN mkdir -p lib/ data/logs/
RUN wget https://cdn.mysql.com/archives/mysql-connector-java-5.1/mysql-connector-java-5.1.34.tar.gz && \
tar -xzvf mysql-connector-java-5.1.34.tar.gz && \
mv mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar lib/ && \
rm mysql-connector-java-5.1.34.tar.gz && \
rm -rf mysql-connector-java-5.1.34/
RUN ./hackpad/bin/build.sh
ADD start.sh start.sh
RUN chmod +x start.sh
EXPOSE 9000
CMD '/home/hackpad/start.sh'