-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
52 lines (45 loc) · 1.88 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM andrewosh/binder-base
MAINTAINER Kirstie Whitaker <[email protected]>
# Switch to root user for installation
USER root
# Update conda and install relevant dependencies
RUN conda update conda --yes --quiet
RUN conda config --add channels conda-forge
RUN conda install --yes --quiet matplotlib \
mayavi \
networkx \
nibabel \
numpy \
pandas \
scipy \
seaborn \
scikit-learn
RUN conda update anaconda --yes --quiet
RUN python -c "from matplotlib import font_manager"
RUN conda clean -ay
# Install dependencies in pip
RUN pip install --upgrade --quiet pip && \
pip install --upgrade --quiet community \
pysurfer \
--ignore-installed
# Install the MCR dependencies and some things we'll need and download the MCR
# from Mathworks -silently install it. Code taken from:
# https://github.com/vistalab/docker/blob/master/matlab/runtime/2015b/Dockerfile
RUN apt-get -qq update && \
apt-get install -y -qq unzip \
xorg \
wget \
curl
RUN mkdir /mcr-install && \
mkdir /opt/mcr && \
cd /mcr-install
RUN wget -q http://www.mathworks.com/supportfiles/downloads/R2015b/deployment_files/R2015b/installers/glnxa64/MCR_R2015b_glnxa64_installer.zip
RUN cd /mcr-install
RUN unzip -q MCR_R2015b_glnxa64_installer.zip
RUN ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent
RUN cd /
RUN rm -rf mcr-install
# Configure environment variables for MCR
ENV LD_LIBRARY_PATH /opt/mcr/v90/runtime/glnxa64:/opt/mcr/v90/bin/glnxa64:/opt/mcr/v90/sys/os/glnxa64
ENV XAPPLRESDIR /opt/mcr/v90/X11/app-defaults
CMD ["/bin/bash"]