FROM jupyter/base-notebook:python-3.7.6 USER root RUN apt-get -y update \ && apt-get install -y dbus-x11 \ firefox \ xfce4 \ xfce4-panel \ xfce4-session \ xfce4-settings \ xorg \ xubuntu-icon-theme # Remove light-locker to prevent screen lock ARG TURBOVNC_VERSION=2.2.6 RUN wget -q "https://sourceforge.net/projects/turbovnc/files/${TURBOVNC_VERSION}/turbovnc_${TURBOVNC_VERSION}_amd64.deb/download" -O turbovnc_${TURBOVNC_VERSION}_amd64.deb && \ apt-get install -y -q ./turbovnc_${TURBOVNC_VERSION}_amd64.deb && \ apt-get remove -y -q light-locker && \ rm ./turbovnc_${TURBOVNC_VERSION}_amd64.deb && \ ln -s /opt/TurboVNC/bin/* /usr/local/bin/ # apt-get may result in root-owned directories/files under $HOME RUN chown -R $NB_UID:$NB_GID $HOME ADD . /opt/install RUN fix-permissions /opt/install USER $NB_USER RUN cd /opt/install && \ conda env update -n base --file environment.yml