@@ -99,11 +99,6 @@ RUN mkdir -p $ANTSPATH && \
99
99
| tar -xzC $ANTSPATH --strip-components 1
100
100
ENV PATH=$ANTSPATH:$PATH
101
101
102
- # Create a shared $HOME directory
103
- RUN useradd -m -s /bin/bash -G users fmriprep
104
- WORKDIR /home/fmriprep
105
- ENV HOME="/home/fmriprep"
106
-
107
102
# Installing SVGO
108
103
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
109
104
RUN apt-get install -y nodejs
@@ -117,7 +112,6 @@ RUN mkdir -p /opt/ICA-AROMA && \
117
112
curl -sSL "https://github.com/maartenmennes/ICA-AROMA/archive/v0.4.4-beta.tar.gz" \
118
113
| tar -xzC /opt/ICA-AROMA --strip-components 1 && \
119
114
chmod +x /opt/ICA-AROMA/ICA_AROMA.py
120
-
121
115
ENV PATH=/opt/ICA-AROMA:$PATH
122
116
123
117
# Installing and setting up miniconda
@@ -157,6 +151,11 @@ RUN conda install -y python=3.7.1 \
157
151
ENV MKL_NUM_THREADS=1 \
158
152
OMP_NUM_THREADS=1
159
153
154
+ # Create a shared $HOME directory
155
+ RUN useradd -m -s /bin/bash -G users fmriprep
156
+ WORKDIR /home/fmriprep
157
+ ENV HOME="/home/fmriprep"
158
+
160
159
# Precaching fonts, set 'Agg' as default backend for matplotlib
161
160
RUN python -c "from matplotlib import font_manager" && \
162
161
sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
@@ -171,6 +170,7 @@ RUN pip install --no-cache-dir "$( grep templateflow fmriprep-setup.cfg | xargs
171
170
desc='brain', extension=['.nii', '.nii.gz']); \
172
171
tfapi.get('MNI152NLin2009cAsym', atlas=None, extension=['.nii', '.nii.gz']); \
173
172
tfapi.get('OASIS30ANTs', extension=['.nii', '.nii.gz']);" && \
173
+ rm fmriprep-setup.cfg && \
174
174
find $HOME/.cache/templateflow -type d -exec chmod go=u {} + && \
175
175
find $HOME/.cache/templateflow -type f -exec chmod go=u {} +
176
176
@@ -187,7 +187,8 @@ RUN install -m 0755 \
187
187
/usr/local/bin/generate_reference_mask
188
188
189
189
RUN find $HOME -type d -exec chmod go=u {} + && \
190
- find $HOME -type f -exec chmod go=u {} +
190
+ find $HOME -type f -exec chmod go=u {} + && \
191
+ rm -rf $HOME/.npm $HOME/.conda $HOME/.empty
191
192
192
193
ENV IS_DOCKER_8395080871=1
193
194
0 commit comments