From 9da3db90ec79015c428afb8aac0fbee0cd6888a4 Mon Sep 17 00:00:00 2001 From: Daniil Fedotov Date: Thu, 5 Dec 2024 17:21:31 -0500 Subject: [PATCH] build(docker): Use multi-stage FROM directive to support dependabot Currently dependabot only updates base images if they follow the FROM directive. To support base_image arg we need to specify default in a FROM instead of ARG Signed-off-by: Daniil Fedotov --- Dockerfile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.in b/Dockerfile.in index a5f4822514..80b2923bb3 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -1,5 +1,6 @@ -ARG base_image=registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542 -FROM ${base_image} +ARG base_image=default +FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542 AS default +FROM ${base_image} as base ARG kanister_version LABEL name=ARG_BIN \