From fbae2251e1fbb00b3f3bb33bdaf29c8720f35fad Mon Sep 17 00:00:00 2001 From: Alex Szczuczko Date: Tue, 3 Oct 2023 01:06:55 -0600 Subject: [PATCH] Add setup erase command to example for adding more RPMs to the server container (#23639) Closes #23637 --- docs/guides/server/containers.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guides/server/containers.adoc b/docs/guides/server/containers.adoc index d7629193b83..d76f9a84cbc 100644 --- a/docs/guides/server/containers.adoc +++ b/docs/guides/server/containers.adoc @@ -101,7 +101,9 @@ It is possible to install new RPMs if absolutely required, following this two-st ---- FROM registry.access.redhat.com/ubi9 AS ubi-micro-build RUN mkdir -p /mnt/rootfs -RUN dnf install --installroot /mnt/rootfs --releasever 9 --setopt install_weak_deps=false --nodocs -y; dnf --installroot /mnt/rootfs clean all +RUN dnf install --installroot /mnt/rootfs --releasever 9 --setopt install_weak_deps=false --nodocs -y && \ + dnf --installroot /mnt/rootfs clean all && \ + rpm --root /mnt/rootfs -e --nodeps setup FROM quay.io/keycloak/keycloak COPY --from=ubi-micro-build /mnt/rootfs /