0% found this document useful (0 votes)
44 views1 page

Docker File

This document outlines a Dockerfile for building a Keycloak image version 17.0.1 with specific configurations. It enables metrics, sets the HTTP relative path, and configures PostgreSQL as the database. The final image is set to start Keycloak in development mode with a specified entry point.

Uploaded by

MayaMerto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views1 page

Docker File

This document outlines a Dockerfile for building a Keycloak image version 17.0.1 with specific configurations. It enables metrics, sets the HTTP relative path, and configures PostgreSQL as the database. The final image is set to start Keycloak in development mode with a specified entry point.

Uploaded by

MayaMerto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

FROM quay.io/keycloak/keycloak:17.0.

1 as builder
ENV KC_METRICS_ENABLED=true
ENV KC_HTTP_RELATIVE_PATH="/auth"
ENV KC_FEATURES=token-exchange
ENV KC_DB=postgres
ENV KC_CACHE_CONFIG_FILE=cache-ispn.xml
COPY cache-ispn.xml /opt/keycloak/conf/cache-ispn.xml
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:17.0.1
COPY cache-ispn.xml /opt/keycloak/conf/cache-ispn.xml
COPY --from=builder /opt/keycloak/lib/quarkus/ /opt/keycloak/lib/quarkus/
WORKDIR /opt/keycloak
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev", "--http-relative-path",
"/auth"]

You might also like