Skip to content

Commit b98c7e9

Browse files
authored
Merge pull request #53 from arokem/dockerfile_modifications
Some small changes to the Dockerfile.
2 parents 5282950 + 62072e3 commit b98c7e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ ENV PATH="/usr/local/miniconda/bin:$PATH" \
124124
LC_ALL="C.UTF-8" \
125125
PYTHONNOUSERSITE=1
126126

127+
ENV FOO=1
127128
# Installing precomputed python packages
128129
RUN conda install -y python=3.7.1 \
129130
pip=19.1 \
@@ -154,8 +155,8 @@ RUN python -c "from matplotlib import font_manager" && \
154155
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
155156

156157
# Precaching atlases
157-
COPY setup.cfg fmriprep-setup.cfg
158-
RUN pip install --no-cache-dir "$( grep templateflow fmriprep-setup.cfg | xargs )" && \
158+
COPY setup.cfg dmriprep-setup.cfg
159+
RUN pip install --no-cache-dir "$( grep templateflow dmriprep-setup.cfg | xargs )" && \
159160
python -c "from templateflow import api as tfapi; \
160161
tfapi.get('MNI152NLin6Asym', atlas=None, resolution=[1, 2], extension=['.nii', '.nii.gz']); \
161162
tfapi.get('MNI152NLin2009cAsym', atlas=None, extension=['.nii', '.nii.gz']); \
@@ -169,13 +170,12 @@ ARG VERSION
169170
# Force static versioning within container
170171
RUN echo "${VERSION}" > /src/dmriprep/dmriprep/VERSION && \
171172
echo "include dmriprep/VERSION" >> /src/dmriprep/MANIFEST.in && \
172-
pip install --no-cache-dir "/src/dmriprep[all]"
173+
cd /src/dmriprep && \
174+
pip install --no-cache-dir .[all]
173175

174176
RUN find $HOME -type d -exec chmod go=u {} + && \
175177
find $HOME -type f -exec chmod go=u {} +
176178

177-
ENV IS_DOCKER_8395080871=1
178-
179179
RUN ldconfig
180180
WORKDIR /tmp/
181181
ENTRYPOINT ["/usr/local/miniconda/bin/dmriprep"]

0 commit comments

Comments
 (0)