summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorNikolaos Boutalas <nikolaos@boutalas.me>2024-01-05 03:50:50 +0200
committerNikolaos Boutalas <nikolaos@boutalas.me>2024-03-17 11:48:24 +0200
commit7217241c87516875cc6f882a9125403b97bf3e06 (patch)
tree3ddfc0e0d85d41fe141b87c099f82f676bfac545 /Dockerfile
parent77475705a59c9c347e8face58cf17b051f84f63e (diff)
Minor changesHEADmaster
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
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"]