-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
44 lines (36 loc) · 1.03 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
FROM jupyter/scipy-notebook
LABEL maintainer="Adam Fekete <[email protected]>"
USER $NB_UID
# Install Python 3 packages
# Remove pyqt and qt pulled in for matplotlib since we're only ever going to
# use notebook-friendly backends in these images
RUN conda install --quiet --yes \
'mkl-service' \
'theano' \
'ase' \
'asap3' \
'scikit-learn' \
'nglview' && \
conda remove --quiet --yes --force qt pyqt && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Install mff from source
#RUN cd /tmp && \
# git clone https://github.com/kcl-tscm/mff.git && \
# cd mff && \
# python setup.py install && \
# cd && \
# rm -rf /tmp/mff && \
# fix-permissions $CONDA_DIR && \
# fix-permissions /home/$NB_USER
COPY . /tmp/mff/
USER root
RUN chown -R $NB_UID /tmp/mff
USER $NB_UID
RUN cd /tmp/mff && \
python setup.py install && \
rm -rf /tmp/mff && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
WORKDIR /home/$NB_USER/