I have a project in Spring Boot which is using the in-built web-server and angular as a front-end. When the Angular application is started, it reads the configuration from env.json which lies in the assets folder.
Now, I want to tell spring boot from outside, like env variables or a file as mount-point to propagate it to the assets folder. I want that the env.json within the assets folder contains the value corresponding to the outside env-variable I define.
With that approach I can use one container image and tell the app in which env it is.
This app is gonna be containerized and has to run in K8s.
Can someone give me a tip or approach to tackle this problem?
Here was a similar question Single build multi deployment for docker image created from Springboot+Angular Jar
Pass Angular environment variables to compiled static angular files in spring boot