31 lines
No EOL
817 B
Docker
31 lines
No EOL
817 B
Docker
ARG KC_VERSION=25.0.0
|
|
|
|
FROM quay.io/keycloak/keycloak:${KC_VERSION} as builder
|
|
|
|
ENV KC_HEALTH_ENABLED=true
|
|
ENV KC_METRICS_ENABLED=true
|
|
ENV KC_DB=postgres
|
|
ENV KC_FEATURES=docker
|
|
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
|
|
ENV KC_CACHE=local
|
|
ENV KC_PROXY=edge
|
|
|
|
ADD --chown=keycloak:keycloak --chmod=644 \
|
|
https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
|
|
/opt/keycloak/providers/discord.jar
|
|
|
|
WORKDIR /opt/keycloak
|
|
RUN /opt/keycloak/bin/kc.sh build
|
|
|
|
FROM quay.io/keycloak/keycloak:${KC_VERSION}
|
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
|
|
|
ENV KC_HEALTH_ENABLED=true
|
|
ENV KC_METRICS_ENABLED=true
|
|
ENV KC_DB=postgres
|
|
ENV KC_FEATURES=docker
|
|
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
|
|
ENV KC_CACHE=local
|
|
ENV KC_PROXY=edge
|
|
|
|
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] |