Nginx with angular constants generation from environment variables.
587
Dockerfile for nginx with automagic angular 1.* constants creation from environment variables.
You need to provide the following parameters:
docker run -ti -e ZZ_ENVIRONMENT=development -e ZZ_MYVAR=myvalue mobapi/docker-angular-dev /scripts/startup.sh -p ZZ_ -m my.angular.module -o /path/to/the/module/file
It will write a file, at "/path/to/the/module/file", which will contain:
angular.module('my.angular.module')
.constant('ENVIRONMENT', 'development')
.constant('MYVAR', 'myvalue');
Content type
Image
Digest
Size
95.2 MB
Last updated
about 9 years ago
docker pull mobapi/nginx-angular-env