1 min readOct 4, 2017
I wrote an article modifying / extending this method. Including the option to pass the Angular CLI environment as a variable at build time, using — build-arg
.
That way, it’s possible to build images for each environment, from the same code base, only changing a parameter for docker
: https://medium.com/@tiangolo/angular-in-docker-with-nginx-supporting-environments-built-with-multi-stage-docker-builds-bb9f1724e984