forked from dwaithe/model-training
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (24 loc) · 922 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
28
29
30
#inspired by ome/jupyter-docker
FROM jupyter/base-notebook:1dc1481636a2
# jupyter/base-notebook updated 2018-04-27
MAINTAINER [email protected]
USER root
RUN apt-get update -y && \
apt-get install -y \
build-essential \
curl \
git
USER jovyan
# Default workdir: /home/jovyan
# Autoupdate notebooks https://github.com/data-8/nbgitpuller
RUN pip install git+https://github.com/data-8/gitautosync && \
jupyter serverextension enable --py nbgitpuller
# create a python2 environment (for OMERO-PY compatibility)
RUN mkdir .setup
ADD environment-python3.yml .setup/
RUN conda env update -n root -f .setup/environment-python3.yml && \
# Jupyterlab component for ipywidgets (must match jupyterlab version) \
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.35
COPY . notebooks
# Autodetects jupyterhub and standalone modes
CMD ["start-notebook.sh"]