1+ FROM ghcr.io/fcp-indi/c-pac_templates:latest as c-pac_templates
12FROM nipreps/fmriprep:20.2.1 as fmriprep
23FROM ubuntu:xenial-20200114 AS dcan-hcp
34
@@ -14,6 +15,7 @@ RUN git clone -b 'v2.0.0' --single-branch --depth 1 https://github.com/DCAN-Labs
1415FROM ubuntu:xenial-20200114
1516LABEL org.opencontainers.image.description "NOT INTENDED FOR USE OTHER THAN AS A STAGE IMAGE IN A MULTI-STAGE BUILD \
1617Ubuntu Xenial base image"
18+ LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC
1719ARG DEBIAN_FRONTEND=noninteractive
1820
1921# create usergroup and user, set permissions, install curl
@@ -119,9 +121,9 @@ RUN apt-get update && \
119121 apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
120122
121123# Installing and setting up miniconda
122- RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.5.11 -Linux-x86_64.sh && \
123- bash Miniconda3-4.5.11 -Linux-x86_64.sh -b -p /usr/local/miniconda && \
124- rm Miniconda3-4.5.11 -Linux-x86_64.sh && chmod -R 777 /usr/local/miniconda
124+ RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-py37_4.12.0 -Linux-x86_64.sh && \
125+ bash Miniconda3-py37_4.12.0 -Linux-x86_64.sh -b -p /usr/local/miniconda && \
126+ rm Miniconda3-py37_4.12.0 -Linux-x86_64.sh && chmod -R 777 /usr/local/miniconda
125127
126128# Set CPATH for packages relying on compiled libs (e.g. indexed_gzip)
127129ENV PATH="/usr/local/miniconda/bin:$PATH" \
@@ -156,9 +158,13 @@ RUN pip install -r /opt/requirements.txt
156158RUN pip install xvfbwrapper
157159
158160# install cpac templates
159- COPY --from=ghcr.io/fcp-indi/ c-pac_templates:latest /cpac_templates /cpac_templates
161+ COPY --from=c-pac_templates /cpac_templates /cpac_templates
160162COPY --from=dcan-hcp /opt/dcan-tools/pipeline/global /opt/dcan-tools/pipeline/global
161163
164+ # Installing surface files for downsampling
165+ COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/ /opt/dcan-tools/pipeline/global/templates/standard_mesh_atlases/
166+ COPY --from=c-pac_templates /opt/dcan-tools/pipeline/global/templates/Greyordinates/ /opt/dcan-tools/pipeline/global/templates/Greyordinates/
167+
162168RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
163169RUN apt-get install git-lfs
164170RUN git lfs install
0 commit comments