Last active
August 29, 2015 14:04
-
-
Save phstudy/c79efbfda9f10e6c2960 to your computer and use it in GitHub Desktop.
tomcat7 sample 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
FROM ubuntu:14.04 | |
MAINTAINER Study Hsueh "ph.study@gmail.com" | |
# Update Ubuntu | |
RUN apt-get update | |
# Install tomcat7 | |
RUN apt-get -y install tomcat7 | |
# Expose 8080 port | |
EXPOSE 8080 | |
# start tomcat7 when container spins up. | |
CMD ["/bin/bash", "-c", "service tomcat7 start || tail -f /var/log/tomcat7/catalina.out"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment