diff options
author | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-07 12:54:09 +0300 |
---|---|---|
committer | Nikolaos Boutalas <nikolaos@boutalas.me> | 2023-08-07 12:54:09 +0300 |
commit | 3e3ec9c41beecdf119ea8e80dd6da5e5ab7adbde (patch) | |
tree | 2bbc2eb03c76ef987e3c17537b52d62831329590 /Dockerfile.ubuntu | |
parent | ad3fa4fef6af05bbc51768785a0d06f110fdd9c5 (diff) |
Introduce Fedora Dockerfile
Diffstat (limited to 'Dockerfile.ubuntu')
-rw-r--r-- | Dockerfile.ubuntu | 19 |
1 files changed, 19 insertions, 0 deletions
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"] |