2019-09-25 23:21:11 +02:00
|
|
|
FROM jupyter/base-notebook
|
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN apt-get update -y -q && \
|
|
|
|
apt-get install -y -q \
|
|
|
|
curl \
|
|
|
|
novnc \
|
2019-09-27 20:30:44 +02:00
|
|
|
patch \
|
|
|
|
tigervnc-standalone-server \
|
|
|
|
vim
|
|
|
|
RUN apt-get install -y -q \
|
|
|
|
lxde
|
2019-09-25 23:21:11 +02:00
|
|
|
|
2019-09-26 19:58:53 +02:00
|
|
|
# Patch novnc to automatically connect
|
2019-09-27 20:30:44 +02:00
|
|
|
# Download missing fonts
|
2019-09-26 19:55:21 +02:00
|
|
|
ADD websocket-path-ui-js.patch /usr/share/novnc/include
|
|
|
|
RUN cd /usr/share/novnc/include/ && \
|
2019-09-27 20:30:44 +02:00
|
|
|
patch -p0 < websocket-path-ui-js.patch && \
|
|
|
|
curl -sSfLO https://raw.githubusercontent.com/novnc/noVNC/v1.1.0/app/styles/Orbitron700.ttf && \
|
|
|
|
curl -sSfLO https://raw.githubusercontent.com/novnc/noVNC/v1.1.0/app/styles/Orbitron700.woff
|
|
|
|
|
|
|
|
# Force remove websockify and install a more recent version
|
|
|
|
RUN dpkg -r --force-depends websockify
|
2019-09-25 23:21:11 +02:00
|
|
|
|
2019-09-26 19:55:21 +02:00
|
|
|
USER jovyan
|
2019-09-26 19:58:53 +02:00
|
|
|
# Custom jupyter-server-proxy to load vnc.html instead of /
|
2019-09-26 19:55:21 +02:00
|
|
|
RUN /opt/conda/bin/pip install https://github.com/manics/jupyter-server-proxy/archive/indexpage.zip
|
2019-09-27 20:30:44 +02:00
|
|
|
RUN conda install -y -q -c manics/label/testing websockify
|
|
|
|
ADD jupyter_notebook_config.py /home/jovyan/.jupyter/jupyter_notebook_config.py
|
2019-09-26 19:55:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Both these should work:
|
2019-09-26 19:58:53 +02:00
|
|
|
# http://localhost:5901/vnc.html
|
|
|
|
# http://127.0.0.1:8888/lxde
|