commit 5f0968ad100929050b89b7df4b99efb8619d241b Author: michael Date: Tue Nov 28 23:51:46 2023 +0100 Add Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..862390a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:latest + +RUN apt update && apt install openssh-server sudo -y + +RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test + +RUN echo 'test:test' | chpasswd + +RUN service ssh start + +EXPOSE 22 + +CMD ["/usr/sbin/sshd","-D"] \ No newline at end of file