Currently environment.yml file is copied to /usr/tmp/ in the container. This creates problems when installing environments that included dependencies installed using pip (currently TensorFlow 2 must be installed using pip) as pip tries to write files into the directory in which the environment file lives.
Solution is to copy the environment.yml file into /tmp.