Created
November 6, 2013 16:49
-
-
Save barata0/7339657 to your computer and use it in GitHub Desktop.
lxc-docker ubuntu tomcat7 apt-get install with oracle-java7-jdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Apache Tomcat7 installation | |
# | |
FROM danieltribeiro/oracle-java7-jdk | |
MAINTAINER Daniel Ribeiro <danieltribeiro@gmail.com> | |
RUN apt-get update | |
RUN apt-get -y install tomcat7 | |
RUN echo "JAVA_HOME=\"/usr/lib/jvm/java-7-oracle\"" >> /etc/default/tomcat7 | |
ENV CATALINA_BASE /var/lib/tomcat7 | |
ENV CATALINA_HOME /usr/share/tomcat7 | |
EXPOSE 8080 | |
VOLUME ["/etc/tomcat7/", "/var/log/tomcat7/"] | |
CMD service tomcat7 start && tail -f /var/lib/tomcat7/logs/catalina.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment