When I read tutorials online, people tend to put their application code inside the docker image. I see the point, you just send that single image anywhere and it will work without specifying anything.
However in development, it means that you rebuild the image 100 times a day every times you want to test something.
Having that in mind, I feel it might be better to mount the app code as a volume inside the container and just re-run the same environment image to test the code.
In that case however, it means that in production you have to fetch the app code and the docker image, checkout the code version, etc.
I’m not sure what would be best here.
What would the docker community recommend?