Referencing container env vars in CMD

I’m afraid you’ll have to copy the original entrypoint (if it’s a script), and adjust that to do the substitution? Or create an entrypoint to do that and call the original binary.