forked from fossasia/susi_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 798 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
FROM openjdk:8
LABEL maintainer="Ansgar Schmidt <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
CMD ["bin/start.sh", "-Idn"]
# Expose the web interface ports
EXPOSE 80 443
RUN apt-get update && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
# clone the github repo
RUN git clone --recursive https://github.com/fossasia/susi_server.git && \
cd susi_server && \
git submodule update --init --recursive
WORKDIR susi_server
# compile
RUN ./gradlew assemble
# change config file
RUN sed -i.bak 's/^\(port.http=\).*/\180/' conf/config.properties && \
sed -i.bak 's/^\(port.https=\).*/\1443/' conf/config.properties && \
sed -i.bak 's/^\(upgradeInterval=\).*/\186400000000/' conf/config.properties && \
echo "while true; do sleep 10;done" >> bin/start.sh