Soldato
I'm learning docker and would like to use the official tomcat image as the starting point in my Dockerfile but it has an env variable set for CATALINA_HOME = /usr/local/tomcat.
The java WAR application I'd like to deploy would like to be installed in a different path to what is set upstream from the tomcat image.
Can I override the CATALINA_HOME env downstream in my Dockerfile to affect the location of where tomcat is installed?
I know I could copy all of the tomcat Dockerfile from github and make my changes that way but that seems a dirty solution. Just wondered if Docker had an override mechanism for this situation?
The java WAR application I'd like to deploy would like to be installed in a different path to what is set upstream from the tomcat image.
Can I override the CATALINA_HOME env downstream in my Dockerfile to affect the location of where tomcat is installed?
I know I could copy all of the tomcat Dockerfile from github and make my changes that way but that seems a dirty solution. Just wondered if Docker had an override mechanism for this situation?