title: Docker run multiple image with single Dockerfile?
body: <p>I am trying to test and use docker for my environment. Here is my Dockerfile
  When I access the tomcat (<code>http://localhost:8080</code>), I get the problem <code>This site can’t be reached</code>.</p>
  
  <p>Note => For window, I use <code>http://192.168.99.100:8080/</code>.</p>
  
  <p>Build</p>
  
  <pre><code>docker build -f Dockerfile -t docker-spring-rest .
  </code></pre>
  
  <p>Run </p>
  
  <pre><code>docker run -p 8080:8080 -p 3306:3306 docker-spring-rest   
  </code></pre>
  
  <p>Dockerfile</p>
  
  <pre><code>#Prat-1 tomcat
  FROM tomcat:8.5.35
  COPY ./target/spring-rest.war /usr/local/tomcat/webapps/
  EXPOSE 8080
  
  #Prat-1 tomcat
  FROM mysql:5.5
  ENV MYSQL_ROOT_PASSWORD root
  ENV MYSQL_DATABASE spring-rest
  COPY ./DB.SQL /docker-entrypoint-initdb.d/
  </code></pre>
  
  <p>One strange thing is, If I setup only <code>Part-1 tomcat</code> without <code>mysql</code>, I can access <code>http://192.168.99.100:8080/</code> or my application <code>http://192.168.99.100:8080/spring-rest</code>
  Is there any missing in my file?</p>
  
  <p>Googling => I checked this <a href="https://hub.docker.com/r/aallam/tomcat-mysql/~/dockerfile/" rel="nofollow noreferrer">tomcat-mysql</a> reference. Why they use <code>apt-get</code> to install because of docker already have multiple images?
  Can I use multiple <code>FROM</code> like <code>FROM tomcat, FROM mysql, FROM xxx</code> in single <code>Dockerfile</code>?</p>