Skip to content

Commit

Permalink
add shadow-utils before adding group
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jan 25, 2024
1 parent b902938 commit 14d42c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builds/base/ubi9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions builds/base/ubi9.JDK11.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions builds/base/ubi9.JDK17.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14d42c4

Please sign in to comment.