From 2e1bb00336284b58543ed1e00bf192c81152a891 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 25 Sep 2024 13:04:30 +0100 Subject: [PATCH] stop being silly --- pkg/commands/copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/copy.go b/pkg/commands/copy.go index cd3bc5fbcc..ddbe6385b3 100644 --- a/pkg/commands/copy.go +++ b/pkg/commands/copy.go @@ -59,7 +59,7 @@ func (c *CopyCommand) ExecuteCommand(config *v1.Config, buildArgs *dockerfile.Bu // username, groupname, or UID/GID combination to request specific ownership // of the copied content. chownStr := c.cmd.Chown - if c.From() == "" { + if chownStr == "" && c.From() == "" { chownStr = "0:0" } uid, gid, err := getUserGroup(chownStr, replacementEnvs)