<p>I have an application war which reads an API implementation jar file to load some data in memory. What I am doing currently is that I COPY that jar inside my &quot;application-war/lib&quot; directory using docker file while generating my applications images.</p>
<p>The downside of this is that whenever the jar needs to be changed; I need to recreate my application war docker image.</p>
<p>Is there a way that I can externalize this jar file location, that I just need to restart of my running pod rather creating a new image each time.</p>
<p>I mean someway if I can give an additional CLASSPATH which my pods container can read while starting up.</p>
<p>Thanks</p>

Jaraws
<p>You are already doing it the right way.
The docker image should always be created for each build so you have history as well. It won't be a good practice to change something inside a running pod and restart it somehow.</p>
<p>If you still want to do it that way, you could mount an external volume to your pod and configure your application server to read war file from that location. In this case you will still need access to that volume some other way which allows you to place the file there.</p>
