Omgevingsvariabelen in YML - alleen vervangen door die van het besturingssysteem

No.

You can set them at launch time, but not build time.

What are you trying to accomplish that you think replacing ENV in yaml at build time will accomplish?