summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/template.Dockerfile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
commit00ff4ca4962370fe42d235d170570bc0691d5d09 (patch)
tree1a326c33aeee9b0f5f369197498a17a432ad6f2d /pkg/docker/template.Dockerfile
parentd56ff075516a6e7249ec589d0279610b2dbc9164 (diff)
downloadunit-00ff4ca4962370fe42d235d170570bc0691d5d09.tar.gz
unit-00ff4ca4962370fe42d235d170570bc0691d5d09.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--pkg/docker/template.Dockerfile9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile
index 99318507..ba3fb650 100644
--- a/pkg/docker/template.Dockerfile
+++ b/pkg/docker/template.Dockerfile
@@ -54,14 +54,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 \