This repository contains Dockerfile of Tomcat for Docker's automated build published to the public Docker Hub.
The following extra components and configurations has been applied to the Tomcat server in these images to make it production ready
:
- Unecessary files(.exe, .bat, etc.) and default applications(like host manager) has been removed to reduce image size
APR
support, version1.7.0
TC Native
support, version1.2.23
sgrio/tomcat
provides several tagged images:
-
Default (Your best choice)
latest
: pointed to8.5.64-jdk8-centos7
-
Tomcat 9 Comming soon.
-
Tomcat 8.5
- Java 8
8.5.64-jdk8-centos7
: Tomcat version8.5.64
withOpenJDK 8
- Java 8
-
Tomcat 7
- Java 8
7.0.96-jdk8-centos7
: Tomcat version7.0.96
withOpenJDK 8
- Java 8
-
Install Docker.
-
Download automated build from public Docker Hub:
docker pull sgrio/tomcat
docker run -d -p 8080:8080 -v /path/to/webapp:/opt/apache-tomcat sgrio/tomcat
You can always mount your own volumns to override the default configurations. I assume you know how to do that, right?