Reputation: 6532
We are using the official tomcat dockerfile: https://hub.docker.com/_/tomcat/
Problem is, the tomcat includes the MANAGER app (We really don't want or need).
Any ideas on how to remove it \ use a clean tomcat instead?
Upvotes: 3
Views: 1064
Reputation: 1324148
You can tweak your own Dockerfile
(which starts with FORM tomcat:x.y) in order to disable some part of it.
Take inspiration from "How to disable Tomcat home page", by modifying TOMCAT_HOME/webapps/ROOT/index.jsp
(in the Dockerfile
, ADD
or COPY
your own) for instance: apply that for the Manager though, not ROOT.
Or (recent Tomcat 9), disallow (or allow only localhost) in the manager.xml
The point remains: you can customize your Tomcat (following the official Tomcat documentation) as an image before running it as a container.
Upvotes: 1