Browse Source

hard code builder

Feroze Mohideen 3 năm trước cách đây
mục cha
commit
4ab2b955d6
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      cli/cmd/stack/build.go

+ 3 - 0
cli/cmd/stack/build.go

@@ -96,6 +96,9 @@ func (b *Build) getV1BuildImage(appName string, env map[string]string, namespace
 	config.Build.Context = b.GetContext()
 	config.Build.Env = CopyEnv(env)
 
+	config.Build.Builder = "heroku/buildpacks:20"
+	config.Build.Buildpacks = []string{"heroku/nodejs"}
+
 	rawConfig := make(map[string]any)
 
 	err := mapstructure.Decode(config, &rawConfig)