@@ -3,10 +3,31 @@ FROM continuumio/miniconda
3
3
4
4
5
5
6
- RUN apt-get update && apt-get upgrade -y && apt-get install -y g++ && apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
7
- RUN cd /tmp && git clone https://github.com/neurolabusc/dcm2niix.git && cd dcm2niix/console/ && git checkout 60bab318ee738b644ebb1396bbb8cbe1b006218f && g++ -O3 -I. main_console.cpp nii_dicom.cpp jpg_0XC3.cpp ujpeg.cpp nifti1_io_core.cpp nii_ortho.cpp nii_dicom_batch.cpp nii_foreign.cpp -o dcm2niix -DmyDisableOpenJPEG -DmyDisableJasper && cp dcm2niix /usr/local/bin/
8
- RUN conda install -y -c conda-forge nipype && pip install https://github.com/moloney/dcmstack/archive/c12d27d2c802d75a33ad70110124500a83e851ee.zip && pip install https://github.com/nipy/nipype/archive/dd1ed4f0d5735c69c1743f29875acf09d23a62e0.zip
9
- RUN curl -O https://raw.githubusercontent.com/nipy/heudiconv/master/bin/heudiconv && chmod +x heudiconv && cp heudiconv /usr/local/bin/
10
- RUN curl -O https://raw.githubusercontent.com/nipy/heudiconv/master/heuristics/convertall.py && chmod +x convertall.py
6
+ RUN apt-get update && apt-get upgrade -y && \
7
+ apt-get install -y g++ pkg-config make && \
8
+ apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
9
+ RUN (wget -O- http://neuro.debian.net/lists/jessie.us-nh.full | tee /etc/apt/sources.list.d/neurodebian.sources.list) && \
10
+ apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 && \
11
+ apt-get update -qq && apt-get install -y git-annex-standalone && \
12
+ apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
13
+ RUN conda install -y -c conda-forge nipype && \
14
+ conda install cmake && \
15
+ pip install https://github.com/moloney/dcmstack/archive/c12d27d2c802d75a33ad70110124500a83e851ee.zip && \
16
+ pip install datalad && \
17
+ conda clean -tipsy && rm -rf ~/.pip/
18
+ RUN cd /tmp && git clone https://github.com/neurolabusc/dcm2niix.git && \
19
+ cd dcm2niix && \
20
+ git checkout 60bab318ee738b644ebb1396bbb8cbe1b006218f && \
21
+ mkdir build && cd build && cmake -DBATCH_VERSION=ON .. && \
22
+ make && make install && \
23
+ cd / && rm -rf /tmp/dcm2niix
24
+
25
+ COPY bin/heudiconv /usr/local/bin/heudiconv
26
+ RUN chmod +x /usr/local/bin/heudiconv
27
+ RUN mkdir /heuristics
28
+ COPY heuristics/convertall.py /heuristics
29
+ RUN chmod +x /heuristics/convertall.py
30
+ RUN git config --global user.email
"[email protected] " && \
31
+ git config --global user.name "Docker Almighty"
11
32
12
33
ENTRYPOINT ["/usr/local/bin/heudiconv" ]
0 commit comments