forked from fossasia/susi_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 851 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
FROM ubuntu:latest
LABEL maintainer="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 --recursive https://github.com/fossasia/susi_server.git
WORKDIR susi_server
RUN git submodule update --init --recursive
# compile
RUN ./gradlew assemble
# 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"]