Skip to content

Commit

Permalink
Updated Dockerfile to OpenJDK 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Hoffmann committed Aug 7, 2019
1 parent 5638b40 commit ed435f8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
FROM fabric8/java-jboss-openjdk8-jdk:1.4.0
FROM openjdk:11-jre-slim
MAINTAINER Nils Hoffmann <[email protected]>

EXPOSE 8083
VOLUME /tmp
# receive jar file to host via argument
ARG JAR_FILE
ARG APP_NAME
ADD target/${JAR_FILE} app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

ENV AB_OFF true
EXPOSE 8083
ENV JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
ENV JAVA_APP_JAR=${JAR_FILE}
ENV JAVA_APP_NAME=${APP_NAME}
#this is Maven's target dir
ADD target/${JAR_FILE} /deployments/

0 comments on commit ed435f8

Please sign in to comment.