title: Using Docker in development for Java EE applications
body: <p><strong><em>I will add 300 points as bounty</em></strong></p>
  
  <p>I have recently started to take a closer look at Docker and how I can use it for faster getting new member of the team up and running with the development environment as well as shipping new versions of the software to production. </p>
  
  <p>I have some questions regarding how and at what stage I should add the Java EE application to the container. As I see it there are multiple ways of doing this.</p>
  
  <p>This WAS the typical workflow (in my team) before Docker:</p>
  
  <ol>
  <li>Developer writes code</li>
  <li>Developer builds the code with Maven producing a WAR</li>
  <li>Developer uploads the WAR in the JBoss admin console / or with Maven plugin</li>
  </ol>
  
  <p>Now after Docker came around I am a little confused about if I should create the images that I need and configure them so that all that is left to do when you run the JBoss Wildfly container is to deploy the application through the admin console on the web. Or should I create a new container for each time I build the application in Maven and add it with the <code>ADD</code> command in the Dockerfile and then just run the container without ever deploying to it once it is started? </p>
  
  <p>In production I guess the last approach is what it preffered? Correct me if I am wrong.
  But in development how should it be done? Are there other workflows?</p>