according to the docker maven image documentation, The $MAVEN_CONFIG dir (default to /root/.m2) could be configured as a volume so anything copied there in a Dockerfile at build time is lost. For that reason the dir /usr/share/maven/ref/ exists, and anything in that directory will be copied on container startup to $MAVEN_CONFIG. the contents of /usr/share/maven/ref/ ..
Ok, I am building a jib based docker image which contains a java CLI app. The application is run like this : java -jar app.jar –opt1=<opt1-value> what i want to do is run a docker container which does nothing when the container is started but can accept arguments anytime and pass that arguments to the ..