1. Nope, they are not pre-baked. They are built at runtime from env vars on each machine.
2. One step, setting up two vars. They can be set by a build script. Lots of things have build scripts way more complicated than this.
The only tedious thing is you have to adapt this for every image type you run.
The only tedious thing is you have to adapt this for every image type you run.