File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # m8aio/keycloak:26.3.2-1.0.4
2+ # Stage 1: Builder
3+ FROM quay.io/keycloak/keycloak:26.3.2 AS builder
4+
5+ # Set the environment variables for the build
6+ ENV KC_DB=postgres \
7+ KC_DB_URL_HOST=postgresql-17-postgresql-ha-postgresql.postgresql-17.svc.cluster.local \
8+ KC_DB_URL_DATABASE=keycloak \
9+ KC_DB_USERNAME=keycloak \
10+ KC_HEALTH_ENABLED=true \
11+ KC_METRICS_ENABLED=true \
12+ KC_SCRIPT_UPLOAD_ENABLED=true
13+
14+ # Create the providers directory
15+ RUN mkdir -p /opt/keycloak/providers
16+
17+ # Download the custom theme JAR file
18+ ADD --chown=keycloak:keycloak https://github.com/m8a-io/keycloak-theme/releases/download/v0.0.1/keycloak-theme-for-kc-all-other-versions.jar /opt/keycloak/providers/keycloak-theme.jar
19+
20+ # Run the build command
21+ RUN /opt/keycloak/bin/kc.sh build
22+
23+ # Stage 2: Final Image
24+ FROM quay.io/keycloak/keycloak:26.3.2
25+
26+ ENV KC_DB=postgres \
27+ KC_DB_URL_HOST=postgresql-17-postgresql-ha-postgresql.postgresql-17.svc.cluster.local \
28+ KC_DB_URL_DATABASE=keycloak \
29+ KC_DB_USERNAME=keycloak \
30+ KC_HEALTH_ENABLED=true \
31+ KC_METRICS_ENABLED=true \
32+ KC_SCRIPT_UPLOAD_ENABLED=true
33+
34+ COPY --from=builder /opt/keycloak/ /opt/keycloak/
You can’t perform that action at this time.
0 commit comments