From d9fb26061ca5b87b4c83ebd12c6871dce3cb9d44 Mon Sep 17 00:00:00 2001 From: Semir Patel Date: Thu, 15 Dec 2022 12:42:22 -0600 Subject: [PATCH] Force installation of shadow-utils for access to groupadd executable in ubi image (#15812) Removing curl inadvertently dropped the transitive dependency on shadow-utils which is required for the groupadd executable. Since curl-minimal does not have this dependency, make it explicit as part of `microdnf install`. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 073e456d4..4882f1b46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -233,7 +233,7 @@ COPY LICENSE /licenses/mozilla.txt # Its shasum is hardcoded. If you upgrade the dumb-init verion you'll need to # also update the shasum. RUN set -eux && \ - microdnf install -y ca-certificates gnupg libcap openssl iputils jq iptables wget unzip tar && \ + microdnf install -y ca-certificates shadow-utils gnupg libcap openssl iputils jq iptables wget unzip tar && \ wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \ echo 'e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df /usr/bin/dumb-init' > dumb-init-shasum && \ sha256sum --check dumb-init-shasum && \