forked from apache/tomcat
-
Notifications
You must be signed in to change notification settings - Fork 0
Building Tomcat Container
Endi S. Dewata edited this page Feb 18, 2023
·
2 revisions
Create the following Dockerfile
:
FROM fedora:30 EXPOSE 8080 RUN dnf install -y tomcat && dnf clean all USER tomcat ENTRYPOINT [ \ "/usr/lib/jvm/jre/bin/java", \ "-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory", \ "-classpath", \ "/usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/lib/java/commons-daemon.jar", \ "-Dcatalina.base=/usr/share/tomcat", \ "-Dcatalina.home=/usr/share/tomcat", \ "-Djava.endorsed.dirs=", \ "-Djava.io.tmpdir=/var/cache/tomcat/temp", \ "-Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties", \ "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager", \ "org.apache.catalina.startup.Bootstrap", \ "start" \ ]
To build the image:
$ podman build -t tomcat .