Cant create conda env in dockerfile
问题 I have an environment.yml in my applications folder I have this in my dockerfile: RUN conda env create RUN source activate myenvfromymlfile When I run the container though the env is not activated. If I do conda env list Is see /opt/conda is activated: root@9c7181cf86aa:/app# conda env list # conda environments: # myenvfromymlfile /opt/conda/envs/myenvfromymlfile root * /opt/conda If I attach to the container I can manually run source activate myenvfromymlfile and it works, but why doesn't