KasmVNC/builder/dockerfile.fedora_thirtythree.rpm.test

64 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-02-19 10:58:38 +01:00
FROM fedora:33
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=fedora \
KASMVNC_BUILD_OS_CODENAME=thirtythree
EXPOSE $VNC_PORT
WORKDIR $HOME
### REQUIRED STUFF ###
RUN dnf install -y openssl xterm gettext wget
RUN dnf install -y nss_wrapper
RUN dnf install -y xorg-x11-xauth xorg-x11-xkb-utils \
xkeyboard-config xorg-x11-server-utils
# xorg-x11-server-Xorg
# RUN dnf install -y @xfce-desktop-environment
RUN dnf erase -y pm-utils xscreensaver*
RUN dnf install -y redhat-lsb-core
RUN dnf install -y vim less
2022-08-19 19:54:11 +02:00
RUN dnf install -y @xfce-desktop-environment
2021-02-19 10:58:38 +01:00
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
2021-02-19 10:58:38 +01:00
### START CUSTOM STUFF ####
2022-08-19 19:54:11 +02:00
COPY ./builder/scripts/ /tmp/scripts/
COPY ./centos/kasmvncserver.spec /tmp
2021-02-19 10:58:38 +01:00
ARG KASMVNC_PACKAGE_DIR
2022-08-19 19:54:11 +02:00
COPY $KASMVNC_PACKAGE_DIR/*.rpm /tmp/
2021-02-19 10:58:38 +01:00
# RUN dnf remove -y tigervnc-server-minimal
2022-08-19 19:54:11 +02:00
RUN /tmp/scripts/install_kasmvncserver_package
2021-02-19 10:58:38 +01:00
### END CUSTOM STUFF ###
RUN chown -R 1000:0 $HOME
USER 1000:kasmvnc-cert
2021-02-19 10:58:38 +01:00
WORKDIR $HOME
ENTRYPOINT [ "/dockerstartup/vnc_startup.sh" ]