diff --git a/pkg/lang/ir/python.go b/pkg/lang/ir/python.go index 3d474f6e8..e91229442 100644 --- a/pkg/lang/ir/python.go +++ b/pkg/lang/ir/python.go @@ -139,7 +139,7 @@ func (g Graph) compilePyPIPackages(root llb.State) llb.State { logrus.WithField("command", cmd). Debug("Configure pip install statements") root = llb.User("envd")(root) - run := root. + run := root.Dir("/tmp"). Run(llb.Shlex(sb.String()), llb.WithCustomNamef("pip install %s", strings.Join(g.PyPIPackages, " "))) // Refer to https://github.com/moby/buildkit/blob/31054718bf775bf32d1376fe1f3611985f837584/frontend/dockerfile/dockerfile2llb/convert_runmount.go#L46