Skip to content

Commit 4e0c2d0

Browse files
authored
Fix missing addgroup/adduser commands in Debian slim image (#584)
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
1 parent 19ca8d8 commit 4e0c2d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ RUN apt-get -q update \
5454
fi \
5555
&& rm -rf /var/lib/apt/lists/*
5656

57-
RUN addgroup --system --gid "$PGID" "$GROUP" \
58-
&& adduser --system --uid "$PUID" --gid "$PGID" --no-create-home --disabled-password --shell /bin/sh "$USER"
57+
RUN groupadd --system --gid "$PGID" "$GROUP" \
58+
&& useradd --system --uid "$PUID" --gid "$PGID" --no-create-home --shell /bin/sh "$USER"
5959

6060
# version checksum of the archive to download
6161
ARG VERSION

0 commit comments

Comments
 (0)