Created
October 17, 2014 17:26
-
-
Save slemeur/0a660bde1669baee4268 to your computer and use it in GitHub Desktop.
Codenvy - Tomcat8 - Dockerfile
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
#Reuse codenvy/jdk7 existing image | |
FROM codenvy/jdk7 | |
#Get Tomcat-8.0.14 and install it | |
RUN mkdir /home/user/tomcat8 && \ | |
wget -qO- "http://mirrors.ircam.fr/pub/apache/tomcat/tomcat-8/v8.0.14/bin/apache-tomcat-8.0.14.tar.gz" | tar -zx --strip-components=1 -C /home/user/tomcat8 && \ | |
rm -rf /home/user/tomcat8/webapps/* | |
#Exposing ports | |
EXPOSE 8080 | |
ENV CODENVY_APP_PORT_8080_HTTP 8080 | |
#Changing to another working directory | |
WORKDIR /home/user/tomcat8/bin | |
#Start and run Tomcat 8 | |
CMD ./catalina.sh run | |
#Deploying the built application on Tomcat | |
ADD $app$ /home/user/tomcat8/webapps/ROOT.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment