mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 09:33:50 +01:00
21 lines
676 B
Plaintext
21 lines
676 B
Plaintext
|
FROM oraclelinux:8
|
||
|
|
||
|
RUN dnf install -y \
|
||
|
less \
|
||
|
redhat-lsb-core \
|
||
|
vim \
|
||
|
xterm
|
||
|
|
||
|
ARG KASMVNC_PACKAGE_DIR
|
||
|
COPY $KASMVNC_PACKAGE_DIR/*.rpm /tmp
|
||
|
RUN dnf localinstall -y /tmp/*.rpm
|
||
|
|
||
|
RUN useradd -m foo
|
||
|
|
||
|
USER foo:kasmvnc-cert
|
||
|
|
||
|
RUN mkdir ~/.vnc && echo '/usr/bin/xterm &' >> ~/.vnc/xstartup && \
|
||
|
chmod +x ~/.vnc/xstartup
|
||
|
|
||
|
ENTRYPOINT bash -c "echo -e \"$VNC_PW\n$VNC_PW\n\" | kasmvncpasswd -w -u \"$VNC_USER\" && vncserver :1 -interface 0.0.0.0 && vncserver -kill :1 && vncserver :1 -depth 24 -geometry 1280x1050 -websocketPort 8443 -cert /etc/pki/tls/private/kasmvnc.pem -sslOnly -FrameRate=24 -interface 0.0.0.0 -httpd /usr/share/kasmvnc/www && tail -f $HOME/.vnc/*.log "
|