forked from FCP-INDI/C-PAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathANTs.2.2.0.neurodocker-bionic.Dockerfile
48 lines (40 loc) · 1.62 KB
/
ANTs.2.2.0.neurodocker-bionic.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ghcr.io/fcp-indi/c-pac/ubuntu:bionic-non-free as ANTs
USER root
# install ANTs from Neurodocker
ENV LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
ANTSPATH="/usr/lib/ants/" \
PATH="/usr/lib/ants:$PATH"
RUN 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
RUN apt-get install -y \
cmake \
g++ \
gcc \
git \
make \
zlib1g-dev && \
echo "Downloading ANTs ..." \
&& mkdir -p /usr/lib/ants \
&& curl -fsSL --retry 5 https://dl.dropbox.com/s/2f4sui1z6lcgyek/ANTs-Linux-centos5_x86_64-v2.2.0-0740f91.tar.gz \
| tar -xz -C /usr/lib/ants --strip-components 1
# download OASIS templates for niworkflows-ants skullstripping
RUN mkdir /ants_template && \
curl -sL https://s3-eu-west-1.amazonaws.com/pfigshare-u-files/3133832/Oasis.zip -o /tmp/Oasis.zip && \
unzip /tmp/Oasis.zip -d /tmp &&\
mv /tmp/MICCAI2012-Multi-Atlas-Challenge-Data /ants_template/oasis && \
rm -rf /tmp/Oasis.zip /tmp/MICCAI2012-Multi-Atlas-Challenge-Data
ENTRYPOINT ["/bin/bash"]
# Link libraries for Singularity images
RUN ldconfig
RUN apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM scratch
LABEL org.opencontainers.image.description "NOT INTENDED FOR USE OTHER THAN AS A STAGE IMAGE IN A MULTI-STAGE BUILD \
ANTs 2.2.0 stage"
LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC
COPY --from=ANTs /usr/lib/ants/ /usr/lib/ants/
COPY --from=ANTs /ants_template /ants_template