@@ -420,7 +420,7 @@ func BuildImage(dctx, dfile, nameAndTag string, buildArgs map[string]string) err
420420 dfilePath := filepath .Join (dctx , dfile )
421421
422422 if os .Getenv ("CTF_CLNODE_DLV" ) == "true" {
423- commandParts := []string {"docker" , "build" , "--build-arg" , `GO_GCFLAGS=all=-N -l` , "--build-arg" , "CHAINLINK_USER=chainlink" }
423+ commandParts := []string {"docker" , "buildx" , " build" , "--build-arg" , `GO_GCFLAGS=all=-N -l` , "--build-arg" , "CHAINLINK_USER=chainlink" }
424424 for k , v := range buildArgs {
425425 commandParts = append (commandParts , "--build-arg" , fmt .Sprintf ("%s=%s" , k , v ))
426426 }
@@ -430,7 +430,7 @@ func BuildImage(dctx, dfile, nameAndTag string, buildArgs map[string]string) err
430430 commandParts = append (commandParts , "-t" , nameAndTag , "-f" , dfilePath , dctx )
431431 return RunCommand (commandParts [0 ], commandParts [1 :]... )
432432 }
433- commandParts := []string {"docker" , "build" , "--build-arg" , "CHAINLINK_USER=chainlink" }
433+ commandParts := []string {"docker" , "buildx" , " build" , "--build-arg" , "CHAINLINK_USER=chainlink" }
434434 for k , v := range buildArgs {
435435 commandParts = append (commandParts , "--build-arg" , fmt .Sprintf ("%s=%s" , k , v ))
436436 }
0 commit comments