This project shows how to contanarize Angular application with multistage docker build process.
Build Angular application, containerize it with docker and nginx and Run it in container.
- Install the Angular CLI:
npm install -g @angular/cli
- Run
npm install
at the root of this project - Run
ng serve -o
- Install the Angular CLI:
npm install -g @angular/cli
- Run
npm install
at the root of this project - Build the project:
ng build
- Build the image:
docker build -t angular-nginx -f angular-nginx.prod.dockerfile .
- Run the Docker container:
docker run -p 8080:80 angular-nginx
- Visit
http://localhost:8080