title: Add Java to an NGINX Docker or add NGINX to a Java Docker on Alpine?
body: <p>I need to build a Docker container (feeling as a N00b about it) that runs a Java application fronted by an nginx Web server. For reasons not subject to discussion I need to put them into one container.</p>
  
  <p>I'd like to use Alpine for that. I found both images that contain Alpine with an installed nginx and Alpine with an installed JDK. I need to combine both.</p>
  
  <p>What's my best course of action? Start with the nginx container and add a jdk or start with the jdk containing container and add nginx?</p>
  
  <p>Or is there an option to combine 2 images (and would that be a good idea).</p>
  
  <p>Insights are appreciated.</p>