Skip to content

Instantly share code, notes, and snippets.

@phstudy
Last active August 29, 2015 14:04
Show Gist options
  • Save phstudy/c79efbfda9f10e6c2960 to your computer and use it in GitHub Desktop.
Save phstudy/c79efbfda9f10e6c2960 to your computer and use it in GitHub Desktop.
tomcat7 sample Dockerfile
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