bake: fix dockerfile default if empty

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-07-31 10:02:44 +02:00
parent 1e50e8ddab
commit 9d56b30c42
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -676,7 +676,7 @@ func (c Config) ResolveTarget(name string, overrides map[string]map[string]Overr
s := "."
t.Context = &s
}
if t.Dockerfile == nil {
if t.Dockerfile == nil || (t.Dockerfile != nil && *t.Dockerfile == "") {
s := "Dockerfile"
t.Dockerfile = &s
}