Skip to content

Commit 1afb1f4

Browse files
authored
Merge pull request #1529 from chrisfilo/fix/tempalteflowhome
[FIX] Avoid using ``$HOME`` for storing templates
2 parents fffeed7 + c604142 commit 1afb1f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ RUN python -c "from matplotlib import font_manager" && \
160160
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
161161

162162
# Precaching atlases
163+
ENV TEMPLATEFLOW_HOME="/opt/templateflow"
164+
RUN mkdir -p $TEMPLATEFLOW_HOME
163165
RUN pip install --no-cache-dir "templateflow>=0.1.0,<0.2.0a0" && \
164166
python -c "from templateflow import api as tfapi; \
165167
tfapi.get('MNI152Lin'); \

0 commit comments

Comments
 (0)