forked from joshuaybang/python_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 730 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM docker.io/jupyter/datascience-notebook:2023-05-30
USER root
### System dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
lmodern file curl libopenmpi-dev openmpi-bin libatlas-base-dev && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/library-scripts
USER ${NB_USER}
RUN pip install nbgitpuller && \
jupyter serverextension enable --py nbgitpuller --sys-prefix
### Prints Jupyter server token when terminal is opened
RUN echo "echo \"Jupyter server token: \$(jupyter server list 2>&1 | grep -oP '(?<=token=)[[:alnum:]]*')\"" > ${HOME}/.get-jupyter-url.sh && \
echo "sh \${HOME}/.get-jupyter-url.sh" >> ${HOME}/.bashrc
RUN pip install pytest pybind11