# Generated by: Neurodocker version 0.7.0+0.gdc97516.dirty # Latest release: Neurodocker version 0.7.0 # Timestamp: 2022/01/26 14:18:12 UTC # # Thank you for using Neurodocker. If you discover any issues # or ways to improve this software, please submit an issue or # pull request on our GitHub repository: # # https://github.com/ReproNim/neurodocker FROM debian:stretch USER root ARG DEBIAN_FRONTEND="noninteractive" ENV LANG="en_US.UTF-8" \ LC_ALL="en_US.UTF-8" \ ND_ENTRYPOINT="/neurodocker/startup.sh" RUN export ND_ENTRYPOINT="/neurodocker/startup.sh" \ && apt-get update -qq \ && apt-get install -y -q --no-install-recommends \ apt-utils \ bzip2 \ ca-certificates \ curl \ locales \ unzip \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ && dpkg-reconfigure --frontend=noninteractive locales \ && update-locale LANG="en_US.UTF-8" \ && chmod 777 /opt && chmod a+s /opt \ && mkdir -p /neurodocker \ && if [ ! -f "$ND_ENTRYPOINT" ]; then \ echo '#!/usr/bin/env bash' >> "$ND_ENTRYPOINT" \ && echo 'set -e' >> "$ND_ENTRYPOINT" \ && echo 'export USER="${USER:=`whoami`}"' >> "$ND_ENTRYPOINT" \ && echo 'if [ -n "$1" ]; then "$@"; else /usr/bin/env bash; fi' >> "$ND_ENTRYPOINT"; \ fi \ && chmod -R 777 /neurodocker && chmod a+s /neurodocker ENTRYPOINT ["/neurodocker/startup.sh"] RUN apt-get update -qq \ && apt-get install -y -q --no-install-recommends \ git \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* ENV CONDA_DIR="/opt/miniconda-latest" \ PATH="/opt/miniconda-latest/bin:$PATH" RUN export PATH="/opt/miniconda-latest/bin:$PATH" \ && echo "Downloading Miniconda installer ..." \ && conda_installer="/tmp/miniconda.sh" \ && curl -fsSL --retry 5 -o "$conda_installer" https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \ && bash "$conda_installer" -b -p /opt/miniconda-latest \ && rm -f "$conda_installer" \ && conda update -yq -nbase conda \ && conda config --system --prepend channels conda-forge \ && conda config --system --set auto_update_conda false \ && conda config --system --set show_channel_urls true \ && sync && conda clean -y --all && sync \ && conda create -y -q --name pyb \ && conda install -y -q --name pyb \ "python=3.7" \ && sync && conda clean -y --all && sync \ && bash -c "source activate pyb \ && pip install --no-cache-dir \ "nipype"" \ && rm -rf ~/.cache/pip/* \ && sync ENV ANTSPATH="/opt/ants-2.3.1" \ PATH="/opt/ants-2.3.1:$PATH" RUN echo "Downloading ANTs ..." \ && mkdir -p /opt/ants-2.3.1 \ && curl -fsSL --retry 5 https://dl.dropbox.com/s/1xfhydsf4t4qoxg/ants-Linux-centos6_x86_64-v2.3.1.tar.gz \ | tar -xz -C /opt/ants-2.3.1 --strip-components 1 ENV FREESURFER_HOME="/opt/freesurfer-6.0.0-min" \ PATH="/opt/freesurfer-6.0.0-min/bin:$PATH" RUN apt-get update -qq \ && apt-get install -y -q --no-install-recommends \ bc \ libgomp1 \ libxmu6 \ libxt6 \ perl \ tcsh \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && echo "Downloading FreeSurfer ..." \ && mkdir -p /opt/freesurfer-6.0.0-min \ && curl -fsSL --retry 5 https://dl.dropbox.com/s/nnzcfttc41qvt31/recon-all-freesurfer6-3.min.tgz \ | tar -xz -C /opt/freesurfer-6.0.0-min --strip-components 1 \ && sed -i '$isource "/opt/freesurfer-6.0.0-min/SetUpFreeSurfer.sh"' "$ND_ENTRYPOINT" RUN echo '{ \ \n "pkg_manager": "apt", \ \n "instructions": [ \ \n [ \ \n "base", \ \n "debian:stretch" \ \n ], \ \n [ \ \n "install", \ \n [ \ \n "git" \ \n ] \ \n ], \ \n [ \ \n "miniconda", \ \n { \ \n "create_env": "pyb", \ \n "conda_install": [ \ \n "python=3.7" \ \n ], \ \n "pip_install": [ \ \n "nipype" \ \n ] \ \n } \ \n ], \ \n [ \ \n "ants", \ \n { \ \n "version": "2.3.1" \ \n } \ \n ], \ \n [ \ \n "freesurfer", \ \n { \ \n "version": "6.0.0-min" \ \n } \ \n ] \ \n ] \ \n}' > /neurodocker/neurodocker_specs.json