I have an application where I have a YAML file that I need to constantly update. By default, it is not inside the container. It is located in the root of my code. And my .env is configured to read the file either in the root of the container or through an external link. I am thinking about the best way to keep updating this file while it is inside the container. For example, I can put a copy command in the Dockerfile. But I would like to keep updating it without needing to do a new deploy. What would be the best way to do this?
I build this application through the Dockerfile. The build process is somewhat time-consuming, and I don’t want to keep deploying it. What I am asking is if there is a strategy where I can just restart the machine and then apply the update to this YAML file without needing to do a complete build.