I am new to docker and flask web framework, my docker context has a flask file, a mod_wsgi file, and the python script. As I am new to flask, there are a lot of small changes which I keep doing. For any change to the docker context to take into effect I have to:
- Kill the container and prune it out of the system.
- Make changes to the Dockerfile and then rebuild the container.
- In some cases I have to even remove the image and rebuild it as the changes are not taken into effect if cache is retained.
Is there any way in which I can have the changes into the docker context taken into effect during run time. I tried to have the docker context shared as a volume as that is the preferred way to persist data in Docker containers and services, but that did not work, any changes still were not reflected.
Could you please let me know of any way I can achieve this. Any suggestion would be greatly appreciated.
Thanks and regards, Shailesh