-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
19 lines (19 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM eclipse-temurin:latest
ARG APP_JAR
# persistent volume containing the app data (biopax model ad index files;
# can use target/work demo/test data)
COPY ${APP_JAR} cpath2.war
#home/work dir (properties, data) to mount as docker volume/bind (with e.g. terraform or docker-compose)
ENV CPATH2_HOME /work
ENV JDK_JAVA_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
#start the app in the workdir to use the "production" application.properties (if present)
WORKDIR ${CPATH2_HOME}
ENTRYPOINT ["java", "-server", "-Djava.security.egd=file:/dev/./urandom", \
"-Dfile.encoding=UTF-8", "-Xss32m", "-Xmx64g", \
"-Dspring.profiles.active=docker", \
"-Dlogback.configurationFile=logback.xml", \
"-Dpaxtools.normalizer.use-latest-registry=true", \
"-Dpaxtools.core.use-latest-genenames=true", \
"-Dpaxtools.CollectionProvider=org.biopax.paxtools.trove.TProvider", \
"-jar", "/cpath2.war", "--server"]
EXPOSE 8080