From d54d35f53e7a30cc3e0128acfb15c407d2aa9742 Mon Sep 17 00:00:00 2001 From: Kunal Yadavaa <118655080+kunalyadavaa@users.noreply.github.com> Date: Sat, 20 Sep 2025 22:36:49 +0530 Subject: [PATCH] Add files via upload --- remote-desktop/Dockerfile.txt | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 remote-desktop/Dockerfile.txt diff --git a/remote-desktop/Dockerfile.txt b/remote-desktop/Dockerfile.txt new file mode 100644 index 0000000..12962ea --- /dev/null +++ b/remote-desktop/Dockerfile.txt @@ -0,0 +1,48 @@ +# Base Image +FROM nishanb/ck-x-simulator-vnc-base:v3 + +# Switch to root user for installations +USER 0 + +# Update and install required dependencies +RUN apt-get update && apt-get install -y \ + curl \ + wget \ + apt-transport-https \ + ca-certificates \ + gnupg \ + lsb-release \ + software-properties-common \ + ssh-client \ + telnet \ + nano \ + vim \ + curl \ + wget \ + xclip + +#create candidate user +RUN useradd -m candidate + +#set hostname as terminal +RUN echo "export HOSTNAME=terminal" >> /headless/.bashrc +#set terminal to bash +RUN echo "export TERM=xterm" >> /headless/.bashrc + +#when shell open switch to candidate user +RUN echo "cd /home/candidate && su candidate" >> /headless/.bashrc + +#disable asking for ssh host verification +RUN mkdir -p /home/candidate/.ssh +RUN touch /home/candidate/.ssh/config +RUN echo "StrictHostKeyChecking no" >> /home/candidate/.ssh/config +RUN echo "UserKnownHostsFile /dev/null" >> /home/candidate/.ssh/config + + +# Copy startup script +COPY startup.sh /usr/local/bin/startup.sh +RUN chmod +x /usr/local/bin/startup.sh + +COPY agent.py /tmp/agent.py + +RUN sed -i '/### every exit != 0 fails the script/a /usr/local/bin/startup.sh' /dockerstartup/vnc_startup.sh \ No newline at end of file