13 lines
214 B
Docker
13 lines
214 B
Docker
FROM centos:7
|
|
|
|
RUN yum update -y && \
|
|
yum install -y \
|
|
sudo \
|
|
which \
|
|
&& yum clean all
|
|
|
|
RUN useradd -ms /bin/bash user \
|
|
&& echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
CMD ["/usr/sbin/init"]
|