From 3e3ec9c41beecdf119ea8e80dd6da5e5ab7adbde Mon Sep 17 00:00:00 2001 From: Nikolaos Boutalas Date: Mon, 7 Aug 2023 12:54:09 +0300 Subject: Introduce Fedora Dockerfile --- Dockerfile.ubuntu | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile.ubuntu (limited to 'Dockerfile.ubuntu') diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000..2668fad --- /dev/null +++ b/Dockerfile.ubuntu @@ -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