Building code within a container

Hello

I am getting started with the whole docker environment my question might sound possibly basic - please bear with me :slight_smile:

I have a situation where I have a running container that I will need to modify (add some features) and this will imply making (as is running a make command) some extra modules.

Is there any tutorial / pointer as of how I should add a build toolchain in a container (assuming this is the “right” way of doing this) ?

Thanks for any pointer