From 249eb5d0c609d7df4ef39709e98bea0605151a33 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 6 May 2023 19:16:54 +0200 Subject: [PATCH] added an parameter to set the source as an parameter --- Containerfile => Containerfile.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename Containerfile => Containerfile.in (89%) 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/