I have created a docker file with Supervisor. I have added 2 process in the Supervisord properties file. 1st process for executing httpd or tomcat 2nd process will call sh file.