Short gist with Node development using Docker.
Span a Node docker container and connect into it.
-
Mount bolume that will be removed on leave:
-it --rm
-
Map and the the current directory as the container working directory:
-v $(pwd):/src -w /src
-
Based on a image REF:
node:6
-
Bash into the container:
bash
docker run -it --rm -v $(pwd):/src -w /src -p 8080:8080 node:6 bash
Note: multiple ports can be forwarded by -p 80:80 -p 1500:1500
and so on.
Follow the process from https://github.com/aperkaz/frontend-node-docker. Optimized for Node.
// in progress