-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
26 lines (19 loc) · 973 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
FROM quay.io/uninett/jupyterhub-singleuser:20191012-5691f5c
MAINTAINER Anne Fouilloux <[email protected]>
# Install packages
USER root
RUN apt-get update && apt-get install -y vim
# Install requirements for Python 3
ADD jupyterhub_environment.yml jupyterhub_environment.yml
RUN conda env update -f jupyterhub_environment.yml
RUN /opt/conda/bin/jupyter labextension install @jupyterlab/hub-extension @jupyter-widgets/jupyterlab-manager
RUN /opt/conda/bin/nbdime extensions --enable
RUN /opt/conda/bin/jupyter labextension install jupyterlab-datawidgets nbdime-jupyterlab dask-labextension
RUN /opt/conda/bin/jupyter labextension install @jupyter-widgets/jupyterlab-sidecar
RUN /opt/conda/bin/jupyter serverextension enable jupytext
RUN /opt/conda/bin/jupyter nbextension install --py jupytext
RUN /opt/conda/bin/jupyter nbextension enable --py jupytext
# fix permission problems (hub is then failing)
RUN fix-permissions $HOME
# Install other packages
USER notebook