Skip to content

Commit

Permalink
Merge pull request #203 from chrisfilo/enh/opt_docker
Browse files Browse the repository at this point in the history
[RTM] optimize Dockerfile order
  • Loading branch information
chrisgorgo committed Dec 3, 2016
2 parents f6a2919 + 0f23581 commit 3045119
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ RUN rm -rf /usr/local/miniconda/lib/python*/site-packages/nipype* && \
RUN pip install -e git+https://github.com/nipy/nipype.git@8ddca5a03fcad26887c862dc23c82ef23f2ee506#egg=nipype
RUN pip install -e git+https://github.com/poldracklab/niworkflows.git@74760e479e79eec454e32df1e06e9f99b1908ae0#egg=niworkflows

RUN mkdir /niworkflows_data
ENV CRN_SHARED_DATA /niworkflows_data

RUN python -c 'from niworkflows.data.getters import get_mni_template_ras; get_mni_template_ras()' && \
python -c 'from niworkflows.data.getters import get_mni_icbm152_nlin_asym_09c; get_mni_icbm152_nlin_asym_09c()' && \
python -c 'from niworkflows.data.getters import get_ants_oasis_template_ras; get_ants_oasis_template_ras()'

WORKDIR /root/src

COPY . fmriprep/
Expand All @@ -57,12 +64,5 @@ WORKDIR /root/
COPY build/files/run_* /usr/bin/
RUN chmod +x /usr/bin/run_*

RUN mkdir /niworkflows_data
ENV CRN_SHARED_DATA /niworkflows_data

RUN python -c 'from niworkflows.data.getters import get_mni_template_ras; get_mni_template_ras()' && \
python -c 'from niworkflows.data.getters import get_mni_icbm152_nlin_asym_09c; get_mni_icbm152_nlin_asym_09c()' && \
python -c 'from niworkflows.data.getters import get_ants_oasis_template_ras; get_ants_oasis_template_ras()'

ENTRYPOINT ["/usr/bin/run_fmriprep"]
CMD ["--help"]

0 comments on commit 3045119

Please sign in to comment.