Skip to content

Commit

Permalink
use openjdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Mar 25, 2022
1 parent 5285b81 commit 5c1ba32
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM tomcat:8.5-alpine
FROM openjdk:11.0.11-jdk
MAINTAINER spring-boot-hello-world.wyona.org
VOLUME /tmp
RUN rm -rf /usr/local/tomcat/webapps/ROOT
COPY target/hello-world-webapp-1.0.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war
COPY target/hello-world-webapp-*.war app.war
ENTRYPOINT ["java","-jar","/app.war"]

#FROM tomcat:8.5-alpine
#MAINTAINER spring-boot-hello-world.wyona.org
#VOLUME /tmp
#RUN rm -rf /usr/local/tomcat/webapps/ROOT
#COPY target/hello-world-webapp-1.0.0-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war

#FROM frolvlad/alpine-oraclejdk8:slim
#MAINTAINER spring-boot-hello-world.wyona.org
Expand Down

0 comments on commit 5c1ba32

Please sign in to comment.