From b45ab30fc0809c4eaa42039f2d0945462d44bfd4 Mon Sep 17 00:00:00 2001 From: Talon Bowler Date: Mon, 17 Jun 2024 05:27:25 -0700 Subject: [PATCH] Initialize build args from stage base Signed-off-by: Talon Bowler (cherry picked from commit c7c2f0e97ee7a89046c1169d1528f03ebea21981) --- frontend/dockerfile/dockerfile2llb/convert.go | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/dockerfile/dockerfile2llb/convert.go b/frontend/dockerfile/dockerfile2llb/convert.go index 4a79eb19e5c8..0de62bc6dce4 100644 --- a/frontend/dockerfile/dockerfile2llb/convert.go +++ b/frontend/dockerfile/dockerfile2llb/convert.go @@ -1035,6 +1035,7 @@ func (ds *dispatchState) init() { // the paths we use back to the base image. ds.paths = ds.base.paths ds.workdirSet = ds.base.workdirSet + ds.buildArgs = append(ds.buildArgs, ds.base.buildArgs...) } type dispatchStates struct {