summaryrefslogtreecommitdiffstats
path: root/environments/vncserver-ssh-socket-forward/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'environments/vncserver-ssh-socket-forward/Dockerfile')
-rw-r--r--environments/vncserver-ssh-socket-forward/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/environments/vncserver-ssh-socket-forward/Dockerfile b/environments/vncserver-ssh-socket-forward/Dockerfile
new file mode 100644
index 0000000..01171d3
--- /dev/null
+++ b/environments/vncserver-ssh-socket-forward/Dockerfile
@@ -0,0 +1,22 @@
+FROM ubuntu:latest
+
+RUN apt-get update && apt-get install -y tigervnc-standalone-server openssh-server xvfb xterm
+RUN mkdir -p /run/sshd /var/run/sshd /root/.vnc /root/.ssh ; \
+ echo "root:root" | chpasswd && \
+ echo 'Port 2222' >> /etc/ssh/sshd_config && \
+ echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && \
+ echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config && \
+ echo 'PubkeyAuthentication yes' >> /etc/ssh/sshd_config && \
+ echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+EXPOSE 2222
+
+COPY passwd /root/.vnc/passwd
+
+COPY ssh_key /root/.ssh/authorized_keys
+
+COPY entrypoint.sh /entrypoint.sh
+
+CMD [ "/entrypoint.sh" ]