diff --git a/Containerfile b/Containerfile.in similarity index 89% rename from Containerfile rename to Containerfile.in index fa24531..ee4b436 100644 --- a/Containerfile +++ b/Containerfile.in @@ -1,4 +1,7 @@ -FROM quay.io/keycloak/keycloak:latest as builder +#ifndef SOURCE +#define SOURCE gitea.sebastian-tobie.de/docker/keycloak:latest-orig +#endif +FROM SOURCE as builder ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin" ENV KC_HEALTH_ENABLED=false @@ -9,7 +12,7 @@ ENV KC_FEATURES=dynamic-scopes,recovery-codes,preview ENV KC_DB_URL=postgresql://postgres.services.tobie:5432/keycloak RUN kc.sh build -FROM quay.io/keycloak/keycloak:latest +FROM SOURCE ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin" COPY --from=builder /opt/keycloak/ /opt/keycloak/