Skip to content

Commit

Permalink
Use Azul Zulu JDK as base image (#2248)
Browse files Browse the repository at this point in the history
* Update Constant.java

* Update Constant.java
  • Loading branch information
Eskibear authored Oct 24, 2018
1 parent e719ae0 commit cfc327c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Constant {
public static final String ERROR_RUNNING_DOCKER = "Error occurred in Docker Run, with exception:\n%s";
public static final String DOCKERFILE_CONTENT_TOMCAT = "FROM tomcat:8.5-jre8\r\n"
+ "RUN rm -fr /usr/local/tomcat/webapps/ROOT\r\n" + "COPY %s /usr/local/tomcat/webapps/ROOT.war\r\n";
public static final String DOCKERFILE_CONTENT_SPRING = "FROM openjdk:8-jdk-alpine\r\n" + "VOLUME /tmp\r\n"
public static final String DOCKERFILE_CONTENT_SPRING = "FROM azul/zulu-openjdk-alpine:8\r\n" + "VOLUME /tmp\r\n"
+ "EXPOSE 8080\r\n" + "COPY %s app.jar\r\n"
+ "ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar /app.jar";
public static final String ERROR_NO_SELECTED_PROJECT = "Can't detect an active project";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Constant {
public static final String DOCKERFILE_CONTENT_TOMCAT = "FROM tomcat:8.5-jre8\r\n"
+ "RUN rm -fr /usr/local/tomcat/webapps/ROOT\r\n"
+ "COPY %s /usr/local/tomcat/webapps/ROOT.war\r\n";
public static final String DOCKERFILE_CONTENT_SPRING = "FROM openjdk:8-jdk-alpine\r\n"
public static final String DOCKERFILE_CONTENT_SPRING = "FROM azul/zulu-openjdk-alpine:8\r\n"
+ "VOLUME /tmp\r\n"
+ "EXPOSE 8080\r\n"
+ "COPY %s app.jar\r\n"
Expand Down

0 comments on commit cfc327c

Please sign in to comment.