Public Repository

Last pushed: 5 months ago
Short Description
Tomcat server hosted on 8080 port.
Full Description

To start tomcat, use this command "docker run -d -p local_port:8080 sumitsaiwal/tomcat"

Tomcat Version: 7.0.69

Dockerfile:

FROM sumitsaiwal/ubuntu:v1

MAINTAINER sumitsaiwal@gmail.com

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
default-jdk

ADD http://repo2.maven.org/maven2/org/apache/tomcat/tomcat/7.0.69/tomcat-7.0.69.tar.gz ./
RUN tar xvzf tomcat-7.0.69.tar.gz
RUN mv apache-tomcat-7.0.69 /opt/
RUN rm -rf tomcat-7.0.69.tar.gz

ENV JAVA_HOME /usr/lib/jvm/default-java
ENV CATALINA_HOME /opt/apache-tomcat-7.0.69
ENV PATH $CATALINA_HOME/bin:$PATH

EXPOSE 8080
CMD ["catalina.sh", "run"]

Docker Pull Command
Owner
sumitsaiwal

Comments (0)