I began to study the use of Docker and a question arose that I still can not understand:
Imagine that I have a python script that I want to run inside my container, so I go there and create the following DockerFile
FROM python:3
ADD hello_world.py /
CMD [ "python", "./hello_world.py" ]
So far everything 100%, I created the image, uploaded the container and managed to perform the tests that I needed in my development environment.
Imagine that now I want to make only a small change in my code hello_world.py
to perform another test.
Do I need to perform the whole procedure again? Create the image, upload it and etc?
In my mind this seems unproductive, after all it would be much easier to just run the script on my machine. And use the container only to do the final tests by creating an approval environment.
Does Docker really work this way? Was not it made for the programmer to test while developing? Or am I using it incorrectly?