diff --git a/docker/keycloak/Dockerfile-26 b/docker/keycloak/Dockerfile-26 index 98e8cb2f..13dc6d46 100644 --- a/docker/keycloak/Dockerfile-26 +++ b/docker/keycloak/Dockerfile-26 @@ -9,19 +9,16 @@ FROM registry.redhat.io/rhbk/keycloak-rhel9:26.0-3 as builder # Enable health and metrics support ENV KC_HEALTH_ENABLED=true ENV KC_METRICS_ENABLED=true +ENV KEYCLOAK_VERSION 26.0.5 # Configure a database vendor ENV KC_DB=postgres COPY --from=extensions-builder /tmp/services/target/bcgov-services-1.0.0.jar /opt/keycloak/providers/ -WORKDIR /opt/keycloak - -RUN /opt/keycloak/bin/kc.sh build --verbose - -FROM registry.redhat.io/rhbk/keycloak-rhel9:26.0-3 +RUN ls -l /opt/keycloak/providers -COPY --from=builder /opt/keycloak/ /opt/keycloak/ +WORKDIR /opt/keycloak # copy the theme directory to `/opt/keycloak/themes/` for now, but we can consider to archive to be deployed later. COPY ./extensions-26/themes/src/main/resources/theme /opt/keycloak/themes @@ -32,5 +29,7 @@ COPY ./configuration/26/quarkus.properties /opt/keycloak/conf COPY ./configuration/26/keycloak-default-user-profile.json /tmp +RUN /opt/keycloak/bin/kc.sh build --verbose + # change these values to point to a running postgres instance ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]