No, it isn't possible. That configuration must go to agent.conf file.
A possible workaround is to use some wrapping script to edit a template agent.conf file based in env var content, similar to what is done to prepare by the Dockefile entrypoint.sh script.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…