infra/containers/keycloak/Containerfile
Finn 01ffa3e40c
All checks were successful
/ build-keycloak (push) Successful in 48s
Pin a bunch of things that were on :latest
2024-10-01 16:05:20 -07:00

18 lines
477 B
Docker

FROM quay.io/keycloak/keycloak:25.0 as builder
# 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
FROM quay.io/keycloak/keycloak:25.0
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"]