Skip to content

Commit

Permalink
Add setup erase command to example for adding more RPMs to the server…
Browse files Browse the repository at this point in the history
… container (keycloak#23639)

Closes keycloak#23637
  • Loading branch information
ASzc authored Oct 3, 2023
1 parent 8764a63 commit fbae225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guides/server/containers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down

0 comments on commit fbae225

Please sign in to comment.