Run angular-cli commands (e.g. ng new my-app) without installing node.js + npm + angular-cli locally
926
Dockerfile linksThis container is based on alpine and includes tini, on which the ENTRYPOINT is based.
docker run --rm -v $(pwd):/home/dev/workspace dlgoodchild/angular2 ng new my-app --skip-npm
docker run --rm -v $(pwd):/home/dev/workspace dlgoodchild/angular2 ng serve -H 0.0.0.0
Recommended usage is to create an alias in your .bashrc, or .bash_profile:
alias ng='docker run --rm -v $(pwd):/home/dev/workspace dlgoodchild/angular2 ng'
With this you can now simply execute ng commands as though it was locally installed
Content type
Image
Digest
Size
71.5 MB
Last updated
over 9 years ago
docker pull dlgoodchild/angular2