diff --git a/dagger/pipeline.go b/dagger/pipeline.go index 1741ca49..f0ca2999 100644 --- a/dagger/pipeline.go +++ b/dagger/pipeline.go @@ -234,7 +234,7 @@ func (p *Pipeline) Subdir(ctx context.Context, op *compiler.Value, st llb.State) if err != nil { return st, err } - return st.File( + return llb.Scratch().File( llb.Copy( st, dir,