mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-08 19:41:54 +02:00
Setting PATH for empty image as well
This commit is contained in:
@@ -123,7 +123,7 @@ func initializeConfig(img partial.WithConfigFile) (*v1.ConfigFile, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if imageConfig.Config.Env == nil {
|
||||
if imageConfig.Config.Env == nil || img == empty.Image {
|
||||
imageConfig.Config.Env = constants.ScratchEnvVars
|
||||
}
|
||||
return imageConfig, nil
|
||||
|
||||
Reference in New Issue
Block a user