title: Docker + Spring Boot/MVC WAR = Tomcat 404
body: <p>so I am trying to dockerize my Spring Boot web app. Under IntelliJ it works fine, but as soon as I deploy it - the http status 404 appears instead of my homepage.</p>
  
  <p><strong>project structure</strong></p>
  
  <pre><code>-src
     -main
        -java
           ...my packages
        -resources
           ...application.properties and others
        -webapp
           -WEB-INF
              -views
                 ...jsp pages
           -resources
              ...js, css, images
     -test
  </code></pre>
  
  <p>The <strong>pom.xml</strong> includes spring-boot-starter dependencies, Tomcat and spring-boot-maven plugin.</p>
  
  <p><strong>Dockerfile</strong></p>
  
  <pre><code>FROM tomcat:8.0.51-jre8-alpine
  RUN rm -rf /usr/local/tomcat/webapps/*
  COPY ./target/charity-0.0.1-SNAPSHOT.war /usr/local/tomcat/webapps/ROOT.war
  </code></pre>
  
  <p>I think somehow the Docker doesn't see the WEB-INF folder. I'm in trouble with this for over 2 days... Any ideas?
  CMD ["catalina.sh", "run"]</p>