forked from fossasia/susi_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 801 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 <ansgar.schmidt@gmx.net>
ENV DEBIAN_FRONTEND noninteractive
# update
RUN apt-get update
RUN apt-get upgrade -y
# add packages
RUN apt-get install -y git openjdk-8-jdk
# clone the github repo
RUN git clone https://github.com/fossasia/susi_server.git
WORKDIR susi_server
# compile
RUN ./gradlew build
# 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", "-Idn"]