summaryrefslogtreecommitdiffstats
path: root/environments/vncserver/Dockerfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 17:06:32 +0000
commit2dad5357405ad33cfa792f04b3ab62a5d188841e (patch)
treeb8f8893942060fe3cfb04ac374cda96fdfc8f453 /environments/vncserver/Dockerfile
parentInitial commit. (diff)
downloadremmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.tar.xz
remmina-2dad5357405ad33cfa792f04b3ab62a5d188841e.zip
Adding upstream version 1.4.34+dfsg.upstream/1.4.34+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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" ]