https://www.udemy.com/course/docker-and-kubernetes-the-complete-guide/
- virtualbox
- docker toolbox and use host
192.168.99.100
instead oflocalhost
)
Create a .env
file containing (see docs)
CHOKIDAR_USEPOLLING=true
Create the development image
docker build -f Dockerfile.dev -t stephenroille/app .
Map the node_module
directory and mount the following volume /proj/project-95cbfc5cc7-6
into the container (configured in the VirtualBox shared diectories):
docker run -p 5000:3000 -v /usr/node_app/node_modules -v /proj/project-95cbfc5cc7-6:/usr/node_app -it stephenroille/app