Switch to Jetty for a smaller server container

This commit is contained in:
R. Tyler Croy 2016-10-16 17:28:11 -07:00
parent 8dbe9359a4
commit da047041d0
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
FROM tomcat:8.0-jre8
RUN rm -rf /usr/local/tomcat/webapps/*
COPY target/*.war /usr/local/tomcat/webapps/ROOT.war
FROM jetty:9-alpine
COPY target/*.war /var/lib/jetty/webapps/ROOT.war
RUN java -jar $JETTY_HOME/start.jar --add-to-startd=http2 --approve-all-licenses