Setting PATH to default PATH if PATH is missing
@@ -123,8 +123,9 @@ func initializeConfig(img partial.WithConfigFile) (*v1.ConfigFile, error) {
if err != nil {
return nil, err
}
-
+ if imageConfig.Config.Env == nil {
imageConfig.Config.Env = constants.ScratchEnvVars
+ }
return imageConfig, nil
}
