Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
b15e4c76d3 | |||
b338eebfc8 |
1 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM quay.io/keycloak/keycloak:26.0.5-0 as builder
|
FROM quay.io/keycloak/keycloak:26.0.7-0 as builder
|
||||||
|
|
||||||
# Enable health and metrics support
|
# Enable health and metrics support
|
||||||
ENV KC_HEALTH_ENABLED=true
|
ENV KC_HEALTH_ENABLED=true
|
||||||
|
@ -11,10 +11,9 @@ ENV KC_FEATURES=authorization,docker,web-authn
|
||||||
WORKDIR /opt/keycloak
|
WORKDIR /opt/keycloak
|
||||||
# for demonstration purposes only, please make sure to use proper certificates in production instead
|
# for demonstration purposes only, please make sure to use proper certificates in production instead
|
||||||
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
|
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
|
||||||
RUN /opt/keycloak/bin/kc.sh build --health-enabled=true
|
RUN /opt/keycloak/bin/kc.sh build --health-enabled=true --metrics-enabled=true
|
||||||
|
|
||||||
FROM quay.io/keycloak/keycloak:26.0.5-0
|
FROM quay.io/keycloak/keycloak:26.0.7-0
|
||||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
||||||
|
|
||||||
# change these values to point to a running postgres instance
|
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
||||||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
|
Loading…
Add table
Reference in a new issue