This repository contains the Angular CLI tool (1.4.x) running over Docker. This project will help you to develop in not time any web application using the latest version of NodeJS (8.x)
After installing the Docker CLI tool, now you're ready to start working with docker-angular-cli app.
git clone https://github.com/sandovaledwin/docker-angular-cli
cd docker-angular-cli
Now, you're ready for creating the new docker-angular-cli Docker Image in your computer.
docker build -t docker-angular-cli:1.4.8 .
docker run -it --rm -w /app -v $(pwd):/app docker-angular-cli:1.4.8 /home/node/.npm-global/lib/node_modules/@angular/cli/bin/ng new my-project
docker run -it --rm -w /app -v $(pwd)/my-project:/app -p 4200:4200 docker-angular-cli:1.4.8 /home/node/.npm-global/lib/node_modules/@angular/cli/bin/ng serve --host 0.0.0.0
In order to test that the project is running ok, you'll need to open the next url in the browser.
http://localhost:4200