forked from loklak/loklak_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 1.09 KB
/
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
33
34
35
36
FROM openjdk:8-alpine
LABEL maintainer="Ansgar Schmidt <[email protected]>"
# Create Volume for persistence
VOLUME ["/loklak_server/data"]
# start loklak
CMD ["/loklak_server/bin/start.sh", "-Idn"]
# setup locales
ENV LANG=en_US.UTF-8
# Expose the web interface ports
EXPOSE 80 443
# copy the required parts of the source code
ADD bin /loklak_server/bin/
ADD conf /loklak_server/conf/
ADD src /loklak_server/src/
ADD html /loklak_server/html/
ADD installation /loklak_server/installation/
ADD ssi /loklak_server/ssi/
ADD gradle /loklak_server/gradle/
ADD gradlew /loklak_server/
ADD build.gradle /loklak_server/
ADD settings.gradle /loklak_server/
ADD test/queries /loklak_server/test/queries/
RUN apk update && apk add --no-cache git bash && \
# compile loklak
cd /loklak_server && ./gradlew build -x checkstyleMain -x checkstyleTest -x jacocoTestReport && \
# change config file
sed -i 's/^\(port.http=\).*/\180/;s/^\(port.https=\).*/\1443/;s/^\(upgradeInterval=\).*/\186400000000/' \
conf/config.properties
# set current working directory to loklak_server
WORKDIR /loklak_server