To build an image from this dockerfile, clone this repo under git/knowledgehut and issue the command:
docker build --tag knowledgehut/mynode .
To use this as a container, create a project directory under your git/ directory and cd into it. Then run:
docker run -it --rm -v $PWD:/work -w /work knowledgehut/mynode
To get a docker container with nodejs and npm installed. If you want to permanently install extra tools (grunt for example), add a new line to the dockerfile like this:
run npm install -g grunt
Or, better still, in a new directory, create your own dockerfile:
from knowledgehut/mynode
run npm install -g grunt
Content type
Image
Digest
Size
39.6 MB
Last updated
over 6 years ago
docker pull knowledgehut/mynode