-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (19 loc) · 818 Bytes
/
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
FROM jupyter/scipy-notebook:42f4c82a07ff
LABEL maintainer="[email protected]"
# Copy requirements file from host to temp directory
COPY requirements.txt /tmp/requirements.txt
# Install requirements
RUN python3 -m pip install -r /tmp/requirements.txt
USER root
# Enable Jupyter extensions
RUN jupyter contrib nbextension install --system
# Enable Jupyter extensions
RUN jupyter nbextension enable toc2/main --system && \
jupyter nbextension enable --py latex_envs --system && \
jupyter nbextension enable spellchecker/main --system && \
jupyter nbextension enable execute_time/ExecuteTime --system && \
jupyter nbextension enable varInspector/main --system
# Set user to Jupyter Notebook user
USER $NB_USER
# Change working directory to volume mount point
WORKDIR /home/$NB_USER/work