Sign inSign up

deasil/ng

By deasil

Updated almost 9 years ago

Angular CLI

Image
1

1.4K

deasil/ng repository overview

Deasil - NodeJS / Angular CLI Development Container

dockeri.co

Tags
  • 8.9, latest
  • 6.11
Pull the latest:
docker pull deasil/ng

docker run -it --rm deasil/ng ng --version
docker run -it --rm deasil/ng node --version
docker run -it --rm deasil/ng npm --version
Pull a tagged version (Node.js version):
docker pull deasil/ng:6.11

docker run -it --rm deasil/ng:6.11 ng --version
docker run -it --rm deasil/ng:6.11 node --version
docker run -it --rm deasil/ng:6.11 npm --version
Install Node dependencies for your project using npm:
docker run -it --rm -v $(pwd):/home/app deasil/ng npm install

Note If you have previously run npm install using a different version of NodeJs you may need to remove your node_modules directory and do a fresh install with the above command.

Build the Angular project:

Use Angular CLI to build your project (ng build).

docker run -it --rm -v $(pwd):/home/app deasil/ng ng build
Develop and debug an Angular project:

Serve the application and watch for changes in real-time with ng serve.

docker run -it --rm -v $(pwd):/home/app -p 4200:4200 deasil/ng ng serve -vw --host 0.0.0.0

Browse to http://localhost:4200 in your browser to view the application.

Stoping the container: Use docker ps to find the new running container and issue the command docker stop CONTAINER_NAME to stop it.

LICENSE

MIT

Tag summary

Content type

Image

Digest

Size

380.2 MB

Last updated

almost 9 years ago

docker pull deasil/ng