How to activate an Anaconda environment in a Singularity recipe
问题 I am trying to create a singularity image and recipe that will create an anaconda environment and then activate said environment so I can build the python wheel of a project in that environment so it's 100% installed and functional after the singularity build is completed. Bootstrap: docker From: nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 %environment # use bash as default shell SHELL=/bin/bash # add CUDA paths CPATH="/usr/local/cuda/include:$CPATH" PATH="/usr/local/cuda/bin:$PATH" LD_LIBRARY