Add setup erase command to example for adding more RPMs to the server container (#23639)
Closes #23637
This commit is contained in:
parent
8764a6347c
commit
fbae2251e1
1 changed files with 3 additions and 1 deletions
|
@ -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 <package names go here> --releasever 9 --setopt install_weak_deps=false --nodocs -y; dnf --installroot /mnt/rootfs clean all
|
||||
RUN dnf install --installroot /mnt/rootfs <package names go here> --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 /
|
||||
|
|
Loading…
Reference in a new issue