From bb51a619cdd8f4e1fe799889bb32e81aea7ec7fd Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Tue, 8 Jul 2025 12:30:31 -0400 Subject: [PATCH] fix: Only set to config/ if files/ doesn't exist --- template/templates/Containerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/templates/Containerfile.j2 b/template/templates/Containerfile.j2 index 92f7a75..2e7d3d5 100644 --- a/template/templates/Containerfile.j2 +++ b/template/templates/Containerfile.j2 @@ -8,7 +8,7 @@ FROM {{ recipe.base_image }}@{{ base_digest }} AS {{ main_stage }} ARG RECIPE={{ recipe_path.display() }} ARG IMAGE_REGISTRY={{ registry }} -{%- if self::config_dir_exists() %} +{%- if self::config_dir_exists() && !self::files_dir_exists() %} ARG CONFIG_DIRECTORY="/tmp/config" {%- else %} ARG CONFIG_DIRECTORY="/tmp/files"