Skip to content
Snippets Groups Projects
Commit 4ac589e5 authored by Konstantin Pavlov's avatar Konstantin Pavlov
Browse files

Debian: move to groupadd/useradd.

parent dc87ccb2
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ ENV PKG_RELEASE %%PKG_RELEASE%% ...@@ -8,8 +8,8 @@ ENV PKG_RELEASE %%PKG_RELEASE%%
RUN set -x \ RUN set -x \
# create nginx user/group first, to be consistent throughout docker variants # create nginx user/group first, to be consistent throughout docker variants
&& addgroup --system --gid 101 nginx \ && groupadd --system --gid 101 nginx \
&& adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 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 update \
&& apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates \ && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates \
&& \ && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment