From 98b94410cf424a37f15789a37287914791a0f84c Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Wed, 15 Feb 2023 12:59:53 +0100 Subject: [PATCH] Add Dockerfile and assets --- Dockerfile | 13 +++++++++++++ assets/service1/bar | 0 assets/service1/foo | 0 3 files changed, 13 insertions(+) create mode 100644 Dockerfile create mode 100644 assets/service1/bar create mode 100644 assets/service1/foo diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1327c19 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu + +COPY assets assets + +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 + +# Start the OpenSSH server +CMD ["/usr/sbin/sshd", "-D"] diff --git a/assets/service1/bar b/assets/service1/bar new file mode 100644 index 0000000..e69de29 diff --git a/assets/service1/foo b/assets/service1/foo new file mode 100644 index 0000000..e69de29