From a2b6129415049f132d67257619711f77b8f569ad Mon Sep 17 00:00:00 2001
From: Peter Vennemann <pv238554@fh-muenster.de>
Date: Thu, 22 Dec 2022 10:31:54 +0000
Subject: [PATCH] Install XPRA as root.

---
 Dockerfile | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index fb39834..204564d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,18 +2,9 @@ FROM jupyter/scipy-notebook:hub-1.5.0
 
 # Install from APT repository
 USER root
-RUN apt-get update
+RUN apt-get update -y
 RUN apt-get install -y git
 
-# Install basics
-USER jovyan
-RUN pip3 install --upgrade pip
-
-# Install 'nice to have lab extensions'
-RUN pip install --upgrade jupyterlab
-RUN pip install jupyterlab-git==0.34.0
-RUN pip install jupyterlab-gitlab==3.0.0
-
 # Install XPRA
 RUN apt-get install -y gnupg2 apt-transport-https software-properties-common apt-utils mc
 RUN apt-get install -y yaru-theme-gnome-shell yaru-theme-gtk yaru-theme-icon
@@ -27,6 +18,15 @@ RUN apt-get install -y lightdm
 RUN rm -rf /usr/share/applications
 RUN mkdir /usr/share/applications
 
+# Install basics
+USER jovyan
+RUN pip3 install --upgrade pip
+
+# Install 'nice to have lab extensions'
+RUN pip install --upgrade jupyterlab
+RUN pip install jupyterlab-git==0.34.0
+RUN pip install jupyterlab-gitlab==3.0.0
+
 # Install for -> ewirtsch
 RUN pip install pandaSDMX==1.6.0
 RUN pip install plotly==5.4.0
-- 
GitLab