From 35221ac4414f13a0e6e797a9177fdca000257caa Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Wed, 13 Aug 2025 22:34:46 +0900 Subject: [PATCH] Fix missing addgroup/adduser commands in Debian slim image Replace addgroup/adduser with groupadd/useradd which are available in the debian:stable-slim base image. The addgroup and adduser commands are part of the adduser package which is not installed in the slim image. This fixes the build failure: /bin/bash: line 1: addgroup: command not found Continues fix for #582 --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c34f55f..d118e06 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -54,8 +54,8 @@ RUN apt-get -q update \ fi \ && rm -rf /var/lib/apt/lists/* -RUN addgroup --system --gid "$PGID" "$GROUP" \ - && adduser --system --uid "$PUID" --gid "$PGID" --no-create-home --disabled-password --shell /bin/sh "$USER" +RUN groupadd --system --gid "$PGID" "$GROUP" \ + && useradd --system --uid "$PUID" --gid "$PGID" --no-create-home --shell /bin/sh "$USER" # version checksum of the archive to download ARG VERSION