Created
February 10, 2016 23:47
-
-
Save skylerto/e0eae34495dab2bc12e9 to your computer and use it in GitHub Desktop.
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
FROM ubuntu | |
# Update Ubuntu | |
RUN apt-get update && apt-get -y upgrade | |
# Add oracle java 7 repository | |
RUN apt-get -y install software-properties-common | |
RUN add-apt-repository ppa:webupd8team/java | |
RUN apt-get -y update | |
# Accept the Oracle Java license | |
RUN echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections | |
# Install Oracle Java | |
RUN apt-get -y install oracle-java7-installer | |
# Install tomcat | |
RUN apt-get -y install tomcat7 | |
RUN echo "JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> /etc/default/tomcat7 | |
ADD TestA_Layne.war /usr/share/tomcat7-root | |
EXPOSE 8080 | |
# Start Tomcat, after starting Tomcat the container will stop. So use a 'trick' to keep it running. | |
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