FROM debian
ADD jdk-8u74-linux-x64.tar.gz /usr/local/
ADD apache-tomcat-7.0.100.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk1.8.0_74
ENV CATALINA_HOME /usr/local/apache-tomcat-7.0.100
ENV PATH $JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
EXPOSE 8080
CMD ["catalina.sh", "run"]