-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (23 loc) · 949 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
# docker build -t jupyterlab_geojs .
# docker run -it --rm -p 7227:7227 --hostname localhost jupyterlab_geojs
# Find the URL in the console and open browser to that url
# You must first build the thirdparty image, which is at
# project/docker/thirdparty/Dockerfile
# (docker build -t jupyterlab_geojs/thirdparty project/docker/thirdparty)
FROM jupyter/base-notebook
# Install jupyterlab widget manager (needed for custom widgets)
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# Install python requirements (GDAL et al)
USER root
RUN conda install --yes GDAL
# Copy source files
ADD ./ /home/$NB_USER/jupyterlab_geojs
RUN chown -R ${NB_UID}:${NB_UID} ${HOME}
USER ${NB_USER}
# Install JupyterLab extension
WORKDIR /home/$NB_USER/jupyterlab_geojs
RUN python setup.py install
RUN jupyter labextension install .
# Setup entry point
WORKDIR /home/$NB_USER/jupyterlab_geojs/notebooks
CMD ["jupyter", "lab", "--ip", "0.0.0.0"]