Public | Automated Build

Last pushed: 22 days ago
Short Description
Minimal Tomcat image based on Alpine Linux
Full Description

fbrx/tomcat

Description

This is a minimal docker image containing an Apache Tomcat Web Container, based on Alpine Linux. All additional content (docs, default apps, windows executables) is removed to make the image as lightweight as possible.

Usage

You can use this image as a base image (FROM fbrx/tomcat) to run your web app on Apache Tomcat. Simply copy the desired war-file (as war or the exploded directory) to /opt/apache-tomcat-<TOMCAT_VERSION>/. The current working dir is the installation directory of tomcat, so you can just add ADD my-sample-app.war webapps/ to your Dockerfile.

Sample Dockerfile:

FROM fbrx/tomcat

ADD my-sample-app.war webapps/

Ports

The image exposes two ports:

  • 8080 - the default http port
  • 8009 - the JMX connector port
Docker Pull Command
Owner
fbrx
Source Repository

Comments (3)
fbrx
8 months ago

thanks for your comments, i just added a volume for /opt/apache-tomcat/webapps

firatkucuk
9 months ago

Please add APR support to dockerfile.

firatkucuk
9 months ago

Binding external volume may be good option:

docker run --name mytomcat -p 127.0.0.1:8080:8080 -v /path/tomcat/webapps:/opt/apache-tomcat/webapps -d fbrx/tomcat