Dockerfile works correctly for tomcat. After tomcat starts, I have to trigger ant scripts. catalina.sh is started from a separate run.sh file. So, Dockerfile has CMD ["/tmp/run.sh"]
The run.sh file has below lines:
- catalina.sh run
- antscript
Tomcat starts but ant scripts are not called. I also tried other possibilities like:
- catalina.sh run && antscripts
tomcat starts but antscripts are not triggered
Is there a way that I can call the ant scripts automatically after tomcat starts? I dont want to run the scripts afterwards by using docker exec.