2024-10-04 08:02:00 +00:00
|
|
|
FROM quay.io/keycloak/keycloak:26.0 as builder
|
2024-07-15 05:12:20 +00:00
|
|
|
|
|
|
|
# Enable health and metrics support
|
|
|
|
ENV KC_HEALTH_ENABLED=true
|
|
|
|
ENV KC_METRICS_ENABLED=true
|
|
|
|
|
|
|
|
# Configure a database vendor
|
|
|
|
ENV KC_DB=postgres
|
|
|
|
|
|
|
|
WORKDIR /opt/keycloak
|
|
|
|
RUN /opt/keycloak/bin/kc.sh build
|
|
|
|
|
2024-10-04 08:02:00 +00:00
|
|
|
FROM quay.io/keycloak/keycloak:26.0
|
2024-07-15 05:12:20 +00:00
|
|
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
|
|
|
ADD themes/jankysolutions /opt/keycloak/themes/jankysolutions
|
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
|
|
|
CMD ["start", "--cache-stack=kubernetes"]
|