sorry, I do not understand… this is what I do for a custom deployment
you create a customized image using the docker build command, and some local files
from tomcat:latest (or whatever source image u are using)
Update the default apache site with the config we created.
ADD ports.conf /etc/apache2/ports.conf
note that virtual host port must match ports.conf setting
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
ADD apache.conf /etc/apache2/apache2.conf
— if u change the default port, you should add an expose for that
expose ??? (same port as in ports.conf)
CMD /usr/sbin/apache2ctl -D FOREGROUND
then docker build -t your_image_name .
then docker run your_image_name