Skip to content

Commit 8af2be1

Browse files
authored
Replaced adduser with useradd (#35)
The Debian project removed that implicit dependency in Debian 12 (“bookworm”), released June 2023. In current stable-slim images (now tracking Debian 12), passwd remains, but adduser became an optional package and is omitted from the slim flavour to reduce image size.
1 parent ca9d785 commit 8af2be1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ LABEL org.opencontainers.image.vendor="Dmytro Konstantinov" \
77
org.opencontainers.image.created="${BUILD_DATE}"
88
COPY ./dockerfs /
99
RUN cp -a /etc/skel/.??* /root \
10-
&& adduser --quiet --uid 1000 --disabled-password --disabled-login \
11-
--no-create-home --home /home --shell /bin/bash --gecos "" guest \
10+
&& useradd -u 1000 -M -d /home -s /bin/bash -U -p '!*' guest \
1211
&& cp /etc/skel/.??* /home \
1312
&& chown -R guest:guest /home /mnt
1413
RUN apt-get -y update \

0 commit comments

Comments
 (0)