Skip to content

Commit d6c85eb

Browse files
committed
Some small changes to the Dockerfile.
1 parent 5282950 commit d6c85eb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 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,7 +170,8 @@ 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 {} +
@@ -191,3 +193,5 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
191193
org.label-schema.vcs-url="https://github.com/nipreps/dmriprep" \
192194
org.label-schema.version=$VERSION \
193195
org.label-schema.schema-version="1.0"
196+
197+
COPY license.txt /usr/local/license.txt

0 commit comments

Comments
 (0)