Using OS Environment Variables in Angular (with Docker)
This is demo, to show you how you can pass configuration through OS Environment Variables to your angular application during build.
To run this demo,
-
First, clone this repo:
git clone https://github.com/coding-latte/using-angular-docker-environment-variables.git
-
And then, build the docker image:
docker build --rm -f "dockerfile" -t angular-docker-environment-variables:latest .
-
And finally run the image you just built:
docker build --rm -f "dockerfile" -t angular-docker-environment-variables:latest .
You can learn more about this here