Use Backup Docker with a shared volume

I'm using an Ubuntu container in my Windows laptop.
I write the code in a shared folder. Therefore, I need to run a Docker Volume Watcher background process to touch my files for NPM to update the hot module.
The big problem is that the code is not stored in the image, so the container loses much of its backup value.

How can I configure it so that the code is part of the container?

Many Thanks