forked from loklak/loklak_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (23 loc) · 787 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 ubuntu:latest
MAINTAINER Ansgar Schmidt <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# update
RUN apt-get update
RUN apt-get upgrade -y
# add packages
RUN apt-get install -y git ant openjdk-7-jdk
# clone the github repo
RUN git clone https://github.com/loklak/loklak_server.git
WORKDIR loklak_server
# compile
RUN ant
# Expose the web interface ports
EXPOSE 80 443
# change config file
RUN sed -i.bak 's/^\(port.http=\).*/\180/' conf/config.properties
RUN sed -i.bak 's/^\(port.https=\).*/\1443/' conf/config.properties
RUN sed -i.bak 's/^\(upgradeInterval=\).*/\186400000000/' conf/config.properties
# hack until loklak support no-daemon
RUN echo "while true; do sleep 10;done" >> bin/start.sh
# start loklak
CMD ["bin/start.sh"]