From 5f0968ad100929050b89b7df4b99efb8619d241b Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 28 Nov 2023 23:51:46 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 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