2021-01-28 10:10:46 +01:00
|
|
|
FROM ubuntu:focal
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
ENV DISPLAY=:1 \
|
|
|
|
VNC_PORT=8443 \
|
|
|
|
VNC_RESOLUTION=1280x720 \
|
|
|
|
MAX_FRAME_RATE=24 \
|
|
|
|
VNCOPTIONS="-PreferBandwidth -DynamicQualityMin=4 -DynamicQualityMax=7" \
|
|
|
|
HOME=/home/user \
|
|
|
|
TERM=xterm \
|
|
|
|
STARTUPDIR=/dockerstartup \
|
|
|
|
INST_SCRIPTS=/dockerstartup/install \
|
|
|
|
KASM_RX_HOME=/dockerstartup/kasmrx \
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
|
|
VNC_COL_DEPTH=24 \
|
|
|
|
VNC_RESOLUTION=1280x1024 \
|
|
|
|
VNC_PW=vncpassword \
|
|
|
|
VNC_USER=user \
|
|
|
|
VNC_VIEW_ONLY_PW=vncviewonlypassword \
|
|
|
|
LD_LIBRARY_PATH=/usr/local/lib/ \
|
|
|
|
OMP_WAIT_POLICY=PASSIVE \
|
|
|
|
SHELL=/bin/bash \
|
|
|
|
SINGLE_APPLICATION=0 \
|
|
|
|
KASMVNC_BUILD_OS=ubuntu \
|
2021-01-28 10:10:46 +01:00
|
|
|
KASMVNC_BUILD_OS_CODENAME=focal
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
EXPOSE $VNC_PORT
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
### REQUIRED STUFF ###
|
|
|
|
|
2023-01-26 07:51:36 +01:00
|
|
|
RUN apt-get update && apt-get install -y supervisor xfce4 xfce4-terminal xterm libnss-wrapper gettext wget
|
2020-12-24 20:54:58 +01:00
|
|
|
RUN apt-get purge -y pm-utils xscreensaver*
|
|
|
|
|
|
|
|
RUN echo 'source $STARTUPDIR/generate_container_user' >> $HOME/.bashrc
|
|
|
|
|
|
|
|
RUN mkdir -p $STARTUPDIR
|
2022-08-19 19:54:11 +02:00
|
|
|
COPY builder/startup/ $STARTUPDIR
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
### START CUSTOM STUFF ####
|
|
|
|
|
2021-01-28 10:10:46 +01:00
|
|
|
COPY build/kasmvnc.${KASMVNC_BUILD_OS}_${KASMVNC_BUILD_OS_CODENAME}.tar.gz /tmp/
|
|
|
|
RUN tar -xzvf /tmp/kasmvnc.${KASMVNC_BUILD_OS}_${KASMVNC_BUILD_OS_CODENAME}.tar.gz --strip 1 -C /
|
2020-12-24 20:54:58 +01:00
|
|
|
|
|
|
|
### END CUSTOM STUFF ###
|
|
|
|
|
|
|
|
RUN chown -R 1000:0 $HOME
|
|
|
|
USER 1000
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/dockerstartup/vnc_startup.sh" ]
|