blob: b9e9fe2959f643e064f5d7d6c62fe594dda426af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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" ]
|