Packages: use groupadd/useradd on Debian-based operating systems.
addgroup/adduser will no longer be installed by default in the "minbase". Also, moving to lower-level utilities saves us one runtime dependency.
This commit is contained in:
@@ -58,14 +58,13 @@ RUN set -ex \
|
||||
&& @@RUN@@ \
|
||||
&& mkdir -p /var/lib/unit/ \
|
||||
&& mkdir /docker-entrypoint.d/ \
|
||||
&& addgroup --system unit \
|
||||
&& adduser \
|
||||
&& groupadd --system unit \
|
||||
&& useradd \
|
||||
--system \
|
||||
--disabled-login \
|
||||
--ingroup unit \
|
||||
--gid unit \
|
||||
--no-create-home \
|
||||
--home /nonexistent \
|
||||
--gecos "unit user" \
|
||||
--comment "unit user" \
|
||||
--shell /bin/false \
|
||||
unit \
|
||||
&& apt-get update \
|
||||
|
||||
Reference in New Issue
Block a user