BootStrap: docker
From: debian:stretch-backports
%help
A container with 3d-dna
%environment
PATH=/opt/conda/bin:$PATH
%post
apt-get update && apt-get -y upgrade
apt-get -y install \
build-essential \
wget \
bzip2 \
ca-certificates \
libglib2.0-0 \
libxext6 \
libsm6 \
libxrender1 \
git
rm -rf /var/lib/apt/lists/*
apt-get clean
# download and install Miniconda
echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh
wget -c
https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh /bin/bash Miniconda2-latest-Linux-x86_64.sh -bfp /usr/local/
rm -rf Miniconda2-latest-Linux-x86_64.sh
# add bioconda channels
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda
conda update conda
# install 3d-dna dependecies
conda create -y --name 3d-dna lastz=1.0.4 openjdk=8.0.152 gawk=4.2.1 coreutils=8.30 parallel=20180522 python=2.7 numpy=1.15.1 scipy=1.1.0 matplotlib=2.2.3
conda clean --all --yes
# install 3d-dna
git clone
https://github.com/theaidenlab/3d-dna.git%runscript
exec conda activate 3d-dna