Skip to content

2019

Set runtime variables for an Angular app in a Docker Container

A guide for setting up runtime variables for an Angular App which is hosted in a Nginx Docker container (or any else). What's special about this? It does not need another file to be loaded before bootstrapping the app, neither to be included via the docker run command. It simply lets you set variables in your angular app via Environment variables passed to docker by docker run --rm -e "TEST_ENV=This really works!" -it <image_name>.