-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a4dea7
commit bfa306b
Showing
3 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
FROM alpine:latest | ||
LABEL MAINTAINER="[email protected]" | ||
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 | ||
|
||
ENV LANG=en_US.UTF-8 | ||
# Expose the web interface ports | ||
EXPOSE 80 443 | ||
|
||
|
@@ -20,23 +25,12 @@ ADD build.gradle /loklak_server/ | |
ADD settings.gradle /loklak_server/ | ||
ADD test/queries /loklak_server/test/queries/ | ||
|
||
# install OpenJDK 8 JDK, Ant, and Bash | ||
RUN apk update && apk add openjdk8 git bash && \ | ||
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 && \ | ||
# remove OpenJDK 8 JDK and Ant | ||
apk del openjdk8 git && \ | ||
# install OpenJDK 8 JRE without GUI support | ||
apk add openjdk8-jre-base | ||
conf/config.properties | ||
|
||
# set current working directory to loklak_server | ||
WORKDIR /loklak_server | ||
|
||
# Create Volume for persistence | ||
VOLUME ["/loklak_server/data"] | ||
|
||
# start loklak | ||
CMD ["/loklak_server/bin/start.sh", "-Idn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters