title: Correct way to deploy WAR files in docker image
body: <p>What is the docker way to deploy java projects in a docker container?</p>
  
  <p>Do I copy the war into webapps:</p>
  
  <pre><code>FROM jetty:9.2.10
  MAINTAINER Me "me@me.com"
  ADD ./target/*.war /var/lib/jetty/webapps/ROOT.war
  </code></pre>
  
  <p>or do I take the exploded war file:</p>
  
  <pre><code>FROM jetty:9.2.10
  MAINTAINER Me "me@me.com"
  ADD ./target/app-0.1.0.BUILD-SNAPSHOT /var/lib/jetty/webapps/ROOT
  </code></pre>
  
  <p>Normally one would deploy the sealed war file if it was a normal container, but with docker, that means pushing a 10-20MB file every time you make a small change whereas adding the exploded war would only push the difference - the .class file that has changed.</p>
  
  <p>Are there any downsides to deploying the exploded war instead of the war file?</p>