-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (32 loc) · 1.28 KB
/
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
FROM antsx/ants:v2.4.3
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y python3.8 python3.8-distutils python3-pip \
&& python3.8 -m pip install --upgrade pip \
&& python3.8 -m pip install setuptools \
&& python3.8 -m pip install pybids==0.15.6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy the template from the source repo and download any extra data, eg warps
COPY template /opt/template
# Get MNI152 to template warp
RUN wget --directory-prefix /opt/template/MNI152NLin2009cAsym \
--content-disposition https://ndownloader.figshare.com/files/26136116 2>/dev/null
COPY --from=pyushkevich/itksnap:latest /usr/local/bin/c3d /opt/bin/c3d
ENV ANTSPATH="/opt/ants/bin/" \
PATH="/opt/bin:/opt/scripts:/opt/ants/bin:$PATH" \
LD_LIBRARY_PATH="/opt/ants/lib:$LD_LIBRARY_PATH"
RUN mkdir -p /opt/scripts
COPY run*.pl /opt/scripts/
COPY trim_neck.sh /opt/scripts/trim_neck.sh
# BIDS script when it's ready to use
# COPY runANTsCT.py /opt/scripts/runANTsCT.py
RUN chmod a+x /opt/scripts/*
WORKDIR /data
# Eventually the default entrypoint will be for BIDS data
# User can override for legacy compatibility
#
# ENTRYPOINT ["/opt/scripts/runANTsCT.py"]
#
# For now, use a legacy interface
ENTRYPOINT ["/opt/scripts/run.pl"]