blob: 2668fad6efa71f9d39af16c3527e1e801591769b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]
|