How can I set a runtime environment variable based on the value of another

I'm trying to deploy grafana/grafana Docker image on Heroku, and grafana allows you to configure everything via environment variables prefixed with GF_. Heroku binds it's dyno to the docker contai...