22062025 7 51 50 early morning

This commit is contained in:
2025-06-23 05:50:57 +03:00
parent b6dc0a0ef7
commit 01eff2d54a
4 changed files with 49 additions and 18 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM quay.io/keycloak/keycloak:latest 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:latest
COPY --from=builder /opt/keycloak/ /opt/keycloak/
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
# Применяем начальную загрузку и устанавливаем необходимые переменные
/opt/keycloak/bin/kc.sh build && /opt/keycloak/bin/kc.sh start