same...
This commit is contained in:
parent
eaed0dafe7
commit
b45e6609f6
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||||
# https://dev.to/izackv/running-a-docker-container-with-a-custom-non-root-user-syncing-host-and-container-permissions-26mb
|
# https://dev.to/izackv/running-a-docker-container-with-a-custom-non-root-user-syncing-host-and-container-permissions-26mb
|
||||||
# hadolint ignore=DL3008
|
# hadolint ignore=DL3008
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt install -y sudo && \
|
apt-get install -y sudo && \
|
||||||
addgroup --gid 2000 nonroot && \
|
addgroup --gid 2000 nonroot && \
|
||||||
adduser --uid 2000 --gid 2000 --disabled-password --gecos "" ansible-user && \
|
adduser --uid 2000 --gid 2000 --disabled-password --gecos "" ansible-user && \
|
||||||
echo 'ansible-user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
|
echo 'ansible-user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
|
||||||
|
|
Loading…
Reference in a new issue