-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (34 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ucsdets/datahub-base-notebook:2023.2-stable as datahub-base-notebook
USER root
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -y update \
&& apt-get install -y --no-install-recommends \
dbus-x11 \
firefox \
xfce4 \
xfce4-panel \
xfce4-session \
xfce4-settings \
xorg \
xubuntu-icon-theme
# Remove light-locker to prevent screen lock
ARG TURBOVNC_VERSION=3.0.1
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/
ARG VIRTUALGL_VERSION=3.0.2
RUN cd /tmp && wget -q "https://sourceforge.net/projects/virtualgl/files/${VIRTUALGL_VERSION}/virtualgl_${VIRTUALGL_VERSION}_amd64.deb/download" -O "virtualgl_${VIRTUALGL_VERSION}_amd64.deb" && \
apt-get install -y -q ./"virtualgl_${VIRTUALGL_VERSION}_amd64.deb" && \
rm ./"virtualgl_${VIRTUALGL_VERSION}_amd64.deb"
ARG JRD_COMMIT=7d9b2810669e22b5ecdcfee8d8f531c3da0ab8a9
RUN ID=`mktemp -d` && cd $ID \
&& curl -L https://github.com/jupyterhub/jupyter-remote-desktop-proxy/tarball/${JRD_COMMIT} | tar xvzf - && \
cd jupyterhub-jupyter-remote-desktop-proxy-$(echo $JRD_COMMIT | cut -c 1-7) && \
mamba env update -n base --file environment.yml && \
rm -rf ${ID}
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -y update \
&& apt-get install -y --no-install-recommends \
build-essential
# Additional applications, etc. can go here
USER jovyan