2021-02-22 09:25:02 +01:00
|
|
|
FROM ubuntu:focal
|
|
|
|
|
|
|
|
ARG KASMVNC_PACKAGE_DIR
|
2021-09-07 14:11:21 +02:00
|
|
|
COPY $KASMVNC_PACKAGE_DIR/kasmvncserver_*.deb /tmp/
|
|
|
|
RUN rm -f /tmp/kasmvncserver_*+*.deb; apt-get update && dpkg -i /tmp/*.deb; apt-get -yf install
|
2021-02-22 09:25:02 +01:00
|
|
|
RUN apt-get update && apt-get -y install xterm lsb-release
|
|
|
|
|
|
|
|
RUN useradd -m foo && addgroup foo ssl-cert
|
|
|
|
|
|
|
|
USER foo
|
|
|
|
|
|
|
|
RUN mkdir ~/.vnc && echo '/usr/bin/xterm &' >> ~/.vnc/xstartup && \
|
|
|
|
chmod +x ~/.vnc/xstartup
|
|
|
|
|
2021-03-25 13:10:43 +01:00
|
|
|
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/ssl/certs/ssl-cert-snakeoil.pem -key /etc/ssl/private/ssl-cert-snakeoil.key -sslOnly -FrameRate=24 -interface 0.0.0.0 -httpd /usr/share/kasmvnc/www && tail -f $HOME/.vnc/*.log "
|