Skip to content

Commit

Permalink
Merge pull request #58 from jupyterhub/simplify-dockerfile
Browse files Browse the repository at this point in the history
Simplify developmental dockerfile
  • Loading branch information
yuvipanda authored Aug 26, 2023
2 parents cbe9051 + 25ae80b commit 3aac4d2
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,27 @@ FROM jupyter/base-notebook
USER root

RUN apt-get -y -q update \
&& apt-get -y -q upgrade \
&& apt-get -y -q install \
dbus-x11 \
firefox \
xfce4 \
xfce4-panel \
xfce4-session \
xfce4-settings \
xorg \
xubuntu-icon-theme \
tigervnc-standalone-server \
tigervnc-xorg-extension \
# chown $HOME to workaround that the xorg installation creates a
# /home/jovyan/.cache directory owned by root
&& chown -R $NB_UID:$NB_GID $HOME \
&& rm -rf /var/lib/apt/lists/*

# Install TurboVNC (https://github.com/TurboVNC/turbovnc)
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.deb \
&& apt-get install -y -q ./turbovnc.deb \
# remove light-locker to prevent screen lock
&& apt-get remove -y -q light-locker \
&& rm ./turbovnc.deb \
&& ln -s /opt/TurboVNC/bin/* /usr/local/bin/
USER $NB_USER

COPY jupyter_remote_desktop_proxy /opt/install/jupyter_remote_desktop_proxy
COPY setup.py MANIFEST.in README.md LICENSE /opt/install/
RUN fix-permissions /opt/install
RUN mamba install --yes websockify

COPY --chown=$NB_USER:$NB_USER jupyter_remote_desktop_proxy /opt/install/jupyter_remote_desktop_proxy
COPY --chown=$NB_USER:$NB_USER setup.py MANIFEST.in README.md LICENSE /opt/install/

USER $NB_USER
RUN cd /opt/install \
&& mamba install -y websockify \
&& pip install -e .

0 comments on commit 3aac4d2

Please sign in to comment.