Skip to content

Commit 6674021

Browse files
committed
Build LDAP disabled mapping utility when building image
1 parent 58a5257 commit 6674021

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ RUN pnpm install
1010
COPY . .
1111
RUN pnpm run build-keycloak-theme
1212

13+
WORKDIR /tmp/provider-build
14+
COPY vendor/keycloak-providers .
15+
RUN mvn clean package -Drevision=release -DskipTests
16+
1317
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION} AS builder
1418
WORKDIR /opt/keycloak
19+
# Build custom LDAP disabled provider from the vendor directory
1520
COPY --from=keycloakify_jar_builder /opt/app/dist_keycloak/keycloak-theme-for-kc-all-other-versions.jar /opt/keycloak/providers/
21+
COPY --from=keycloakify_jar_builder /tmp/provider-build/ldap-disabled-mapper/target/ldap-disabled-mapper-release.jar /opt/keycloak/providers/
1622
ENV KC_DB=postgres
1723
RUN /opt/keycloak/bin/kc.sh build --features="passkeys,scripts"
1824

0 commit comments

Comments
 (0)