title: How to update application.prop in dockerised spring boot app
body: <p>I have a dockerised spring-boot based application and i wanted to update some of the values in application.properties. And this seems can be achieved in 3 ways.</p>
  
  <ul>
  <li><p>Update the application.properties file, rebuild the image.</p></li>
  <li><p>Add --spring.config.location= to the ENTRYPOINT, update the prop file, rebuild the image.</p></li>
  <li>Use volume mount, mention the prop file location, update the prop, rebuild the image.</li>
  <li>Using Spring Profiles and pass the profile info before running the container. And even in this approach update the profile specific prop file, rebuild the image.</li>
  </ul>
  
  <p>As we can see all the approaches involve rebuilding images. Is there a way to make changes to application.properties without rebuilding the image? What is the preferred approach in prod scenarios?</p>
  
  <p>Thanks!</p>