jupyter-desktop-server/Dockerfile

32 lines
1.0 KiB
Docker

FROM jupyter/base-notebook
USER root
RUN apt-get update -y -q && \
apt-get install -y -q \
curl \
lxde \
net-tools \
novnc \
tigervnc-standalone-server
RUN apt-get install -y -q python-pip
# https://github.com/novnc/noVNC/issues/1276
RUN /usr/bin/pip install -U websockify==0.9.0
ADD websocket-path-ui-js.patch /usr/share/novnc/include
RUN cd /usr/share/novnc/include/ && \
patch -p0 < websocket-path-ui-js.patch
RUN ln -s /usr/lib/websockify/rebind.so /usr/local/lib/
USER jovyan
# RUN /opt/conda/bin/pip install jupyter-server-proxy
RUN /opt/conda/bin/pip install https://github.com/manics/jupyter-server-proxy/archive/indexpage.zip
ADD jupyter_notebook_config.py /home/jovyan/.jupyter/
# websockify --web /usr/share/novnc 5901 -- vncserver -verbose -xstartup startlxde -SecurityTypes None -geometry 1024x768 -fg :1
# Both these should work:
# http://localhost:5901/vnc.html?autoconnect=true
# http://127.0.0.1:8888/lxde/vnc.html?path=%2Flxde%2Fwebsockify&autoconnect=true