-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
50 lines (39 loc) · 1.42 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
# This is the container for the CCPBioSim md_workshop.
# Start with ccpbiosimbase.
FROM ccpbiosim/ccpbiosimbase:latest
LABEL maintainer="James Gebbie-Rayet <[email protected]>"
# Root to install "rooty" things
USER root
# Update and Install c-shell.
RUN apt-get update -y
RUN apt-get install -y csh
# Back to jovyan user
USER $NB_USER
# Python Dependencies for the md_workshop
RUN pip install --user numpy
RUN pip install --user cython
RUN pip install --user scipy
RUN pip install --user pandas
RUN pip install --user scikit-image
RUN pip install --user matplotlib
RUN pip install --user mdtraj
RUN pip install --user pypcazip
RUN pip install --user ipywidgets
RUN pip install --user nglview
RUN pip install --user xbowflow
RUN pip install --user pinda
RUN pinda install propka 3.1.0
# Initialise NGLView.
RUN jupyter-nbextension install nglview --py --sys-prefix && \
jupyter-nbextension enable nglview --py --sys-prefix
# For some reason pip installing tornado as part of xbowflow install
# breaks the JupyterHub kernel (even though two versions are installed
# in conda!).
RUN pip uninstall -y tornado
# Add all of the workshop files to the home directory
ADD --chown=jovyan:100 *.ipynb $HOME/
ADD --chown=jovyan:100 data $HOME/data
# Move the utilities file to .local/lib.
RUN mv data/pca_analysis/utilities.py .local/lib/python3.6/site-packages/utilities.py
# Always finish with non-root user as a precaution.
USER $NB_USER