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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With