Same Image, Different Settings
The same container image is promoted from staging to production. Production needs a different database URL and log level. Where should those values come from?
Choose one answer
A config/prod.json file baked into the image and chosen by its hostname.
config/prod.json
Configuration supplied at deploy time, such as environment variables.
A Git branch per environment, with values committed in the app's code.
Build arguments, so each environment gets its own image with its values.