There's an updated version of this article and code, for Angular 6 and Angular CLI 6, and now including testing using Chrome Headless with Karma via Puppeteer. Check it out here: https://github.com/tiangolo/medium-posts/tree/master/angular-in-docker
tiangolo/angular-docker-multi-stage-example
Angular in Docker with Nginx, supporting environments, built with multi-stage Docker builds