I.e. the following sample does not work. It seems like the pipe char recognized as another argument
// find the biggest files in the directory recursively
func (m *Dagger) FindBiggestFiles(ctx context.Context, directoryArg *Directory) (string, error) {
return dag.Container().
From("alpine:latest").
WithMountedDirectory("/mnt", directoryArg).
WithWorkdir("/mnt").
WithExec([]string{"du", "-ah", ".", "|", "sort", "-rh", "|", "head", "-20"}).
Stdout(ctx)
}