-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
60 lines (45 loc) · 1.74 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM dcanumn/internal-tools:v1.0.12
ARG DEBIAN_FRONTEND=noninteractive
#----------------------------------------------------------
# Install common dependencies
#----------------------------------------------------------
ENV LANG="en_US.UTF-8" \
LC_ALL="C.UTF-8" \
ND_ENTRYPOINT="/neurodocker/startup.sh"
RUN apt-get update && apt-get install -yq --no-install-recommends \
apt-utils \
graphviz \
python-pip \
python3 \
python3-dev \
wget
RUN pip install setuptools wheel
RUN pip install pyyaml numpy pillow pandas
RUN apt-get update && apt-get install -yq --no-install-recommends python3-pip
RUN pip3 install setuptools wheel
COPY ["app", "/app"]
RUN python3 -m pip install -r "/app/requirements.txt"
# insert pipeline code
ADD https://github.com/DCAN-Labs/dcan-infant-pipeline.git version.json
RUN git clone -b 'v0.0.15' --single-branch --depth 1 https://github.com/DCAN-Labs/dcan-infant-pipeline.git /opt/pipeline
# unless otherwise specified...
ENV OMP_NUM_THREADS=1
ENV SCRATCHDIR=/tmp/scratch
ENV ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
ENV TMPDIR=/tmp
# make app directories
RUN mkdir /bids_input /output /atlases
# Copy custom clean json.
COPY ["./baby_BIDS_cleaning.json", "/opt/dcan-tools/customclean/"]
COPY ["./baby_BIDS_no_session_cleaning.json", "/opt/dcan-tools/customclean/"]
# Copy file mapper files.
COPY ["./current_infant.json", "/opt/dcan-tools/filemapper/"]
COPY ["./current_infant_no_session.json", "/opt/dcan-tools/filemapper/"]
COPY ["./BIDS_filemapper_wrapper.sh", "/opt/dcan-tools/filemapper/"]
# setup ENTRYPOINT
COPY ["./entrypoint.sh", "/entrypoint.sh"]
COPY ["./SetupEnv.sh", "/SetupEnv.sh"]
RUN chmod -R 777 /SetupEnv.sh
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /
CMD ["--help"]