From 7217241c87516875cc6f882a9125403b97bf3e06 Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Fri, 5 Jan 2024 03:50:50 +0200 Subject: Minor changes --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2668fad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:latest + +RUN apt-get update && \ + apt-get install -y ansible python3-apt + +RUN apt-get install -y sudo \ + && useradd -m -s /bin/bash admin \ + && echo "admin ALL=(ALL) ALL" >> /etc/sudoers \ + && passwd -d root + +RUN echo 'admin:admin' | chpasswd + +USER admin +WORKDIR /home/admin + +COPY --chown=admin . init +WORKDIR init + +CMD ["/bin/bash"] -- cgit v1.2.3