You bring up a good point there is an issue here when you don't have a node_modules directory in the source. Basically the "lack of the directory" gets overwritten on the volume mount.
Here is a stackoverflow discussion about the issue:
It talks about it in the context of docker-compose but the same principle should apply without compose. The syntax for adding the additional volume would be:
You bring up a good point there is an issue here when you don't have a
node_modules
directory in the source. Basically the "lack of the directory" gets overwritten on the volume mount.Here is a stackoverflow discussion about the issue:
stackoverflow.com/a/32785014
It talks about it in the context of
docker-compose
but the same principle should apply without compose. The syntax for adding the additional volume would be: