mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-27 18:43:45 +01:00
91eb953f62
New build option with latest stable libjpeg-turbo library
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
FROM ubuntu:bionic
|
|
|
|
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 \
|
|
KASMVNC_BUILD_OS_CODENAME=bionic
|
|
|
|
EXPOSE $VNC_PORT
|
|
|
|
WORKDIR $HOME
|
|
|
|
### REQUIRED STUFF ###
|
|
|
|
RUN apt-get update && apt-get install -y supervisor xfce4 xfce4-terminal xterm libnss-wrapper gettext wget
|
|
RUN apt-get purge -y pm-utils xscreensaver*
|
|
RUN apt-get update && apt-get install -y vim less
|
|
RUN apt-get update && apt-get -y install lsb-release
|
|
|
|
RUN echo 'source $STARTUPDIR/generate_container_user' >> $HOME/.bashrc
|
|
|
|
RUN mkdir -p $STARTUPDIR
|
|
COPY startup/ $STARTUPDIR
|
|
|
|
### START CUSTOM STUFF ####
|
|
|
|
ARG KASMVNC_PACKAGE_DIR
|
|
COPY $KASMVNC_PACKAGE_DIR/kasmvncserver_*.deb /tmp/
|
|
RUN rm -f /tmp/kasmvncserver_*+*.deb; dpkg -i /tmp/*.deb; apt-get -yf install
|
|
|
|
### END CUSTOM STUFF ###
|
|
|
|
RUN chown -R 1000:0 $HOME
|
|
USER 1000:ssl-cert
|
|
WORKDIR $HOME
|
|
|
|
ENTRYPOINT [ "/dockerstartup/vnc_startup.sh" ]
|