-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd16f8f
commit 964f839
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM registry.access.redhat.com/ubi9 AS ubi-micro-build | ||
RUN mkdir -p /mnt/rootfs | ||
RUN dnf install --installroot /mnt/rootfs jq curl \ | ||
--releasever 9 --setopt install_weak_deps=false --nodocs -y; \ | ||
dnf --installroot /mnt/rootfs clean all | ||
|
||
FROM quay.io/keycloak/keycloak:25.0.1 | ||
|
||
# Copy dependencies from ubi-micro-build stage | ||
COPY --from=ubi-micro-build /mnt/rootfs / | ||
|
||
|
||
# Copy the necessary scripts into the container | ||
COPY wait-for-keycloak.sh /opt/keycloak/scripts/wait-for-keycloak.sh | ||
COPY create-sirix-users.sh /opt/keycloak/scripts/create-sirix-users.sh | ||
|
||
USER root | ||
|
||
RUN chmod +x /opt/keycloak/scripts/wait-for-keycloak.sh /opt/keycloak/scripts/create-sirix-users.sh | ||
|
||
# Switch back to the default Keycloak user |