I'm not sure exactly how you will achieve this with docker or anything else, since I don't see anyone asking tomcat to just expand the war before it starts. But in accordance with standard practices, it is not recommended to blow up the war and customize the contents. He kills the whole purpose of the war.
, < < TOMCAT_HOME → /conf.
, , Docker, - tomcat conf.
, , , :
( script) , , .
-
ADD./target/app-0.1.0.BUILD-SNAPSHOT/var/lib/jetty/webapps/ROOT.
.
ADD login.jsp/var/lib/jetty/webapps/ROOT/Webapps, ..