7c7,9 < FROM tomcat:7 --- > # Change: Use the "-slim" variant of the Tomcat base image. > # The slim version includes many fewer packages. > FROM tomcat:7-slim 23a26,32 > > # Change: this is a path the Tomcat server requires to be writeable. > VOLUME /usr/local/tomcat > > # Change: Streamline the final image by removing apt itself > RUN apt-get remove -y --allow-remove-essential apt \ > && rm -rf /var/lib/apt