Centos runs on root

This commit is contained in:
sobolevn 2021-05-05 16:17:20 +03:00
parent f65d76d551
commit 5cfcad9a47
No known key found for this signature in database
GPG Key ID: FF672D568AE3C73E

View File

@ -9,8 +9,4 @@ RUN dnf -y update \
wget \ wget \
sudo \ sudo \
&& dnf clean all \ && dnf clean all \
&& rm -rf /var/cache/yum \ && rm -rf /var/cache/yum
&& adduser --password='' -m nonroot \
&& echo 'nonroot ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER nonroot
WORKDIR /home/nonroot