Skip to content

Commit f9969bd

Browse files
committed
few fixes on Dockerfile
1 parent d1ffaa9 commit f9969bd

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,19 @@ RUN mkdir -p /opt/c3d && \
109109
ENV C3DPATH=/opt/c3d/ \
110110
PATH=$C3DPATH/bin:$PATH
111111

112+
# Installing Ubuntu packages and cleaning up
113+
RUN apt-get install -y --no-install-recommends \
114+
git=1:2.7.4-0ubuntu1 \
115+
graphviz=2.38.0-12ubuntu2 && \
116+
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
117+
112118
# Install some other required tools
113119
ENV apt-get install -y --no-install-recommends \
120+
git=1:2.7.4-0ubuntu1 \
121+
graphviz=2.38.0-12ubuntu2 \
114122
unzip \
115123
apt-utils \
116124
fusefat \
117-
graphviz \
118125
make \
119126
ruby && \
120127
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@@ -165,7 +172,7 @@ ENV PATH=/usr/local/miniconda/bin:$PATH \
165172
ACCEPT_INTEL_PYTHON_EULA=yes
166173

167174
# Installing precomputed python packages
168-
RUN conda config --add channels intel && \
175+
RUN conda config --add channels intel conda-forge && \
169176
conda config --set always_yes yes --set changeps1 no && \
170177
conda update -q conda && \
171178
conda install -y mkl=2017.0.1 \
@@ -177,18 +184,14 @@ RUN conda config --add channels intel && \
177184
libxml2=2.9.4 \
178185
libxslt=1.1.29 \
179186
traits=4.6.0 \
180-
icu && \
187+
psutil=5.0.1 \
188+
icu=58.1 && \
181189
chmod +x /usr/local/miniconda/bin/* && \
182190
conda clean --all -y
183191

184-
# Precaching fonts
185-
RUN python -c "from matplotlib import font_manager"
186-
187-
# Installing Ubuntu packages and cleaning up
188-
RUN apt-get install -y --no-install-recommends \
189-
git=1:2.7.4-0ubuntu1 \
190-
graphviz=2.38.0-12ubuntu2 && \
191-
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
192+
# matplotlib cleanups: set default backend, precaching fonts
193+
RUN sed -i 's/\(backend *: \).*$/\1Agg/g' /usr/local/miniconda/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc && \
194+
python -c "from matplotlib import font_manager"
192195

193196
# Unless otherwise specified each process should only use one thread - nipype
194197
# will handle parallelization

0 commit comments

Comments
 (0)