I would to start a container with specific shell script using docker compose. For example, a tomcat container starts initweb.sh creating the empty file /tmp/testweb