2021-01-26 09:45:33 +01:00
|
|
|
FROM debian:buster-slim
|
|
|
|
|
|
|
|
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-18 10:32:09 +01:00
|
|
|
RUN apt-get update && apt-get -y install xterm
|
2021-01-26 09:45:33 +01:00
|
|
|
|
2021-03-13 09:54:06 +01:00
|
|
|
COPY startup/deb/kasmvncserver-easy-start /usr/local/bin
|
2021-03-03 11:27:02 +01:00
|
|
|
|
2021-03-03 10:47:48 +01:00
|
|
|
RUN useradd -m foo
|
2021-01-26 09:45:33 +01:00
|
|
|
|
2021-03-03 10:47:48 +01:00
|
|
|
USER foo:ssl-cert
|
2021-02-18 10:32:09 +01:00
|
|
|
|
|
|
|
RUN mkdir ~/.vnc && echo '/usr/bin/xterm &' >> ~/.vnc/xstartup && \
|
|
|
|
chmod +x ~/.vnc/xstartup
|
2021-01-26 09:45:33 +01:00
|
|
|
|
2021-03-13 11:51:33 +01:00
|
|
|
ENTRYPOINT bash -c "echo -e \"$VNC_PW\n$VNC_PW\n\" | \
|
|
|
|
kasmvncpasswd -w -u $VNC_USER $HOME/.kasmpasswd && \
|
|
|
|
kasmvncserver-easy-start && tail -f $HOME/.vnc/*.log"
|