Is it possible to set a docker ENV variable to the result of a command? Like:
ENV MY_VAR whoami
i want MY_VAR to get the value \"root\" or
At this time, a command result can be used with RUN export, but cannot be assigned to an ENV variable.
RUN export
ENV
Known issue: https://github.com/docker/docker/issues/29110