From 4ac589e5161def34bb9e02324fb52ed337611f48 Mon Sep 17 00:00:00 2001
From: Konstantin Pavlov <thresh@nginx.com>
Date: Tue, 13 Jun 2023 11:56:07 -0700
Subject: [PATCH] Debian: move to groupadd/useradd.

---
 Dockerfile-debian.template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template
index 404094f..4615a39 100644
--- a/Dockerfile-debian.template
+++ b/Dockerfile-debian.template
@@ -8,8 +8,8 @@ ENV PKG_RELEASE     %%PKG_RELEASE%%
 
 RUN set -x \
 # create nginx user/group first, to be consistent throughout docker variants
-    && addgroup --system --gid 101 nginx \
-    && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \
+    && groupadd --system --gid 101 nginx \
+    && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
     && apt-get update \
     && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates \
     && \
-- 
GitLab