From 7f6e3f9f3a8e563cd8c7e90ee9333c6e1d524ad0 Mon Sep 17 00:00:00 2001 From: jclausen Date: Wed, 24 Jan 2024 20:02:19 -0500 Subject: [PATCH] add shadow-utils before adding group --- builds/base/ubi9.Dockerfile | 2 ++ builds/base/ubi9.JDK11.Dockerfile | 2 ++ builds/base/ubi9.JDK17.Dockerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/builds/base/ubi9.Dockerfile b/builds/base/ubi9.Dockerfile index e97ff15..b611c66 100644 --- a/builds/base/ubi9.Dockerfile +++ b/builds/base/ubi9.Dockerfile @@ -11,6 +11,8 @@ ENV LANG C.UTF-8 # Since alpine runs as a single user, we need to create a "root" direcotry ENV HOME /root +RUN microdnf install -y shadow-utils + # Add a working group which any dynamic users can be assigned ENV WORKGROUP runwar RUN groupadd $WORKGROUP && usermod -a -G $WORKGROUP root diff --git a/builds/base/ubi9.JDK11.Dockerfile b/builds/base/ubi9.JDK11.Dockerfile index f2f5282..32b2e4d 100644 --- a/builds/base/ubi9.JDK11.Dockerfile +++ b/builds/base/ubi9.JDK11.Dockerfile @@ -11,6 +11,8 @@ ENV LANG C.UTF-8 # Since alpine runs as a single user, we need to create a "root" direcotry ENV HOME /root +RUN microdnf install -y shadow-utils + # Add a working group which any dynamic users can be assigned ENV WORKGROUP runwar RUN groupadd $WORKGROUP && usermod -a -G $WORKGROUP root diff --git a/builds/base/ubi9.JDK17.Dockerfile b/builds/base/ubi9.JDK17.Dockerfile index ac9df2f..7336aee 100644 --- a/builds/base/ubi9.JDK17.Dockerfile +++ b/builds/base/ubi9.JDK17.Dockerfile @@ -11,6 +11,8 @@ ENV LANG C.UTF-8 # Since alpine runs as a single user, we need to create a "root" direcotry ENV HOME /root +RUN microdnf install -y shadow-utils + # Add a working group which any dynamic users can be assigned ENV WORKGROUP runwar RUN groupadd $WORKGROUP && usermod -a -G $WORKGROUP root