Docker Community Forums

Share and learn in the Docker community.

Mounting for a c++ program

So I recently im working on a c++ web server and to update the code, I need to do the mounting staff. So, my issue is when I bash into the main.cpp and edit it, the new cpp code has to sort of recompile, how do I do that?
Similarly, after mounting the folder with main.cpp to the container, and start editing the main.cpp, I still need to ensure the changes occur and compile and show the new output. Do i rebuild an image?

This post was flagged by the community and is temporarily hidden.

Don’t understand the reply and its relationship to turbocpp