Build Angular project using docker image with multi-stage builds
- NodeJS +8
- Angular CLI (npm i -g @angular/cli@latest)
- Docker +17.05
ng new myapp
cp Dockerfile .dockerignore default.conf ./myapp
docker build -t myapp .
In the terminal run: docker run --rm -p 8080:80 myapp
In the browser open a new tab with: http://localhost:8080/
idea tomada de : https://dev.to/avatsaev/create-efficient-angular-docker-images-with-multi-stage-builds-1f3n