$ git clone https://github.com/cbelda/nginx4angular.git
$ cd nginx4angular
$ docker build -t nginx4angular .
$ docker run -it -d -p 80:80 --name=mynginx4angular nginx4angular
1.4 Make the nginx container serve your app by copying the dist/
content in the html/
nginx directory:
$ docker cp my/ng/project/dist/. mynginx4angular:/usr/share/nginx/html/
This image is already published in the Docker Hub.
$ docker pull cbelda/nginx4angular
$ docker run -it -d -p 80:80 --name=mynginx4angular cbelda/nginx4angular
2.3 Make the nginx container serve your app by copying the dist/
content in the html/
nginx directory:
$ docker cp my/ng/project/dist/. mynginx4angular:/usr/share/nginx/html/