// build the application
isBuild, err := runner.WithEnvVariable(
"NODE_OPTIONS", // TODO tricky 🤔 set NODE_OPTIONS in .npmrc,but its not working。
"--max-old-space-size=8192").WithMountedCache("node_modules", dependencyCache).WithExec([]string{"pnpm", "build"}).Directory("dist/").Export(ctx, "dist")
if err != nil {
panic(err)
}
str := "failed"
if isBuild {
str = "successed"
}
fmt.Println(chalk.Red, "build: "+str, chalk.Reset)
I'm a front-end developer, and I'm trying to build my application with dagger. As the code shows, the build works fine on my MACOS, but on centos it reports an error:
error during build.
Error: EPERM: operation not permitted, scandir '/proc/1/map_files'
How do I fix it?