I am trying to add a custom spi for keycloak. I would like to use docker to proceed. Here is my dockerfile:
FROM maven:3.8.4-openjdk-17 AS build
WORKDIR /app
COPY . /app/
RUN mvn clean package
FROM quay.io/keycloak/keycloak:23.0.7
COPY --from=build app/target/keycloak-spi-kafka.jar /opt/keycloak/providers
RUN /opt/keycloak/bin/kc.sh build
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev"]
Doing that, I am able to find my .jar file, however, when I launch my docker image, I am not able to find my custom spi. I think it should be accessible there:
but that is not the case...
I followed the official documentation here and to construct the eventListener, I followed this github repo.
If any of you have advice, that would be highly appreciate.
PS: when I run kc.sh show-config I can see that:
which seems to mean that my custom spi is added
PPS: Here is the link to my github repo, if it may help to have the code:

