summaryrefslogtreecommitdiffstats
path: root/environments/vncserver/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'environments/vncserver/Dockerfile')
-rw-r--r--environments/vncserver/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/environments/vncserver/Dockerfile b/environments/vncserver/Dockerfile
new file mode 100644
index 0000000..b9e9fe2
--- /dev/null
+++ b/environments/vncserver/Dockerfile
@@ -0,0 +1,20 @@
+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 5555
+
+COPY passwd /root/.vnc/passwd
+
+COPY entrypoint.sh /entrypoint.sh
+
+CMD [ "/entrypoint.sh" ]