mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 09:33:50 +01:00
43658a27f7
...via kasmvncserver-start.
18 lines
552 B
Plaintext
18 lines
552 B
Plaintext
FROM debian:buster-slim
|
|
|
|
ARG KASMVNC_PACKAGE_DIR
|
|
COPY $KASMVNC_PACKAGE_DIR/kasmvncserver_*.deb /tmp
|
|
RUN apt-get update && dpkg -i /tmp/*.deb; apt-get -yf install
|
|
RUN apt-get update && apt-get -y install xterm
|
|
|
|
COPY startup/deb/kasmvncserver-start /usr/local/bin
|
|
|
|
RUN useradd -m foo
|
|
|
|
USER foo:ssl-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 $HOME/.kasmpasswd && kasmvncserver-start && tail -f $HOME/.vnc/*.log "
|