sorry, not quite sure what you are asking…
how to use a volume to support the code for your website during runtime (live changes)
if you use -v then that volume is just like a folder inside your container, you don’t need to copy at all.
make a change and the next time that html file is loaded, that is what will be displayed.
no build required…
in my use I do
docker run -d -v host_folder:/var/www/html
and /var/www/html is the apache site rot folder