Sinze Docker 17.05 you can use multi-stage builds. Thats perfect, now you can build an small container for your Angular app with in one file.
Here I will show you my example dockerized Angular setup with multi-stage build, running on nginx.
File Dockerfile
File nginx/default.conf
Build and run your docker image
Build your docker image with the tag your-app
.
$ docker build -t your-app .
Now you can run your container from image your-app
.
$ docker run -p 8800:80 your-app
Open your app on http://localhost:8800/ … 🎉
Originally published at www.kukulili-labs.com on November 20, 2017.