Last active
May 26, 2016 20:44
-
-
Save spark2ignite/63b5c91fa658163d5835f95e63b696cd to your computer and use it in GitHub Desktop.
cda-Dockerfile
This file contains hidden or 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:14.04.4 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y tomcat7 mysql-client vim curl | |
EXPOSE 8080 | |
# Workaround for https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1232258 | |
RUN ln -s /var/lib/tomcat7/common/ /usr/share/tomcat7/common && \ | |
ln -s /var/lib/tomcat7/server/ /usr/share/tomcat7/server && \ | |
ln -s /var/lib/tomcat7/shared/ /usr/share/tomcat7/shared && \ | |
ln -s /etc/tomcat7 /usr/share/tomcat7/conf && \ | |
mkdir /usr/share/tomcat7/temp | |
RUN mkdir /usr/local/reports/ && \ | |
chown tomcat7.tomcat7 /usr/local/reports/ && \ | |
rm -rf /usr/share/tomcat7/webapps/ROOT | |
COPY apple.war /usr/share/tomcat7/webapps/ROOT.war | |
CMD ["/usr/share/tomcat7/bin/catalina.sh","run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment