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.fedora | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile.fedora (limited to 'Dockerfile.fedora') diff --git a/Dockerfile.fedora b/Dockerfile.fedora new file mode 100644 index 0000000..b0781cd --- /dev/null +++ b/Dockerfile.fedora @@ -0,0 +1,19 @@ +FROM fedora:latest + +RUN dnf update -y && \ + dnf install -y ansible + +RUN dnf install -y passwd \ + && 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