通过dockerfile构建singularity镜像

安装spython

# pip3 install spython

生成singularity的recipe文件

# cd /path    先切换至Dockerfile的目录

# spython recipe Dockerfile &> Singularityfile

创建镜像

# singularity build xxx.sif Singularityfile

原文地址:https://www.cnblogs.com/1016391912pm/p/15457547.html