-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 1.01 KB
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
# Start with BioSim base image.
ARG BASE_IMAGE=latest
FROM ghcr.io/ccpbiosim/jupyterhub-base:$BASE_IMAGE
LABEL maintainer="James Gebbie-Rayet <james.gebbie@stfc.ac.uk>"
LABEL org.opencontainers.image.source=https://github.com/ccpbiosim/python-workshop
LABEL org.opencontainers.image.description="A container environment for the ccpbiosim workshop on Python."
LABEL org.opencontainers.image.licenses=MIT
# Switch to jovyan user.
USER $NB_USER
WORKDIR $HOME
# Install workshop deps
RUN mamba install matplotlib numpy pandas nglview ipywidgets -y
RUN pip install mdtraj
# Get workshop files and move them to jovyan directory.
COPY --chown=1000:100 . .
RUN rm -rf _config.yml AUTHORS README.md docker .git .github
# Copy lab workspace
COPY --chown=1000:100 docker/default-37a8.jupyterlab-workspace /home/jovyan/.jupyter/lab/workspaces/default-37a8.jupyterlab-workspace
# UNCOMMENT THIS LINE FOR REMOTE DEPLOYMENT
COPY docker/jupyter_notebook_config.py /etc/jupyter/
# Always finish with non-root user as a precaution.
USER $NB_USER