Sign inSign up

sidh4u/tomcat

By sidh4u

Updated over 1 year ago

Apache Tomcat image based on AL2023-minimal and Custom JRE (slim)

Image
0

355

sidh4u/tomcat repository overview

sidh4u/tomcat - Custom Tomcat Docker Image

A custom Apache Tomcat image optimized for enterprise-grade Java workloads, built on Amazon Linux 2023 minimal with support for dynamic runtime configuration, enhanced observability, and performance. It uses minimal jre (version 21).


🔧 Key Features

  • Custom Base Image
    Based on Amazon Linux 2023 with Corretto JDK/JRE split for optimized multi-stage builds.

  • Tomcat Native Integration
    Compiled and included libtcnative-1.so for improved SSL and performance via APR.

  • JMX Exporter Support
    Preconfigured Prometheus JMX Exporter for JVM metrics collection.

  • External Config Support
    Designed to allow runtime injection of application.properties, log4j2.properties, etc., using entrypoint.sh.

  • Container-Optimized Logging
    Logs to STDOUT/STDERR using log4j2 configuration, suitable for container log aggregation tools.

  • Security Hardening

    • Removes default webapps
    • Uses secure server.xml configurations

📦 Example Usage

FROM sidh4u/tomcat:latest

COPY configuration /configuration
COPY target/*.war /usr/local/tomcat/webapps/

ENTRYPOINT ["/entrypoint.sh"]
CMD ["catalina.sh", "run"]

  • configuration/ contains application config files.
  • A sample entrypoint.sh present. You can extend it as per your need.
  • WAR file is auto-expanded at runtime by Tomcat.

Tag summary

Content type

Image

Digest

sha256:28c2a062b

Size

114.2 MB

Last updated

over 1 year ago

docker pull sidh4u/tomcat