-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
79 lines (57 loc) · 2.29 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Creates the docker container for the workshop in Cambridge
# Run the container with the following command:
# docker run -it --rm -p 8888:8888 miykael/workshop_cambridge
FROM miykael/nipype_tutorial:latest
ARG DEBIAN_FRONTEND=noninteractive
#--------------------------------------
# Update system applications for PyMVPA
#--------------------------------------
USER root
# Install software for PyMVPA
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
swig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#------------------------------------
# Install HarvardOxford atlas via FSL
#------------------------------------
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
fsl-harvard-oxford-atlases \
fsl-harvard-oxford-cortical-lateralized-atlas \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#---------------------------------
# Update conda environment 'neuro'
#---------------------------------
USER neuro
RUN conda install -y -q --name neuro python=2.7 bokeh \
holoviews \
plotly \
dipy \
vtk \
&& sync && conda clean -tipsy && sync \
&& bash -c "source activate neuro \
&& pip install --no-cache-dir nitime \
nibabel \
nilearn==0.5.0a \
pymvpa2 \
tensorflow \
keras \
vtk" \
&& rm -rf ~/.cache/pip/* \
&& sync
#------------------------------------------------
# Copy workshop notebooks into image and clean up
#------------------------------------------------
USER root
COPY ["notebooks", "/home/neuro/workshop/notebooks"]
COPY ["slides", "/home/neuro/workshop/slides"]
COPY ["program.ipynb", "/home/neuro/workshop/program.ipynb"]
COPY ["test_notebooks.py", "/home/neuro/workshop/test_notebooks.py"]
RUN rm -rf /opt/conda/pkgs/*
USER neuro
RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
WORKDIR /home/neuro
CMD ["jupyter-notebook"]