summaryrefslogtreecommitdiff
path: root/Dockerfile.fedora
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.fedora')
-rw-r--r--Dockerfile.fedora19
1 files changed, 19 insertions, 0 deletions
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"]