Error when trying to run a locally built Dokploy Docker container

I'm trying to build my own Dokploy Docker image from the main branch following the steps in the contribution guide. However, when I try to start the container, I get the following error:
/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/lib/find-pages-dir.js:42
throw new Error("> Couldn't find any `pages` or `app` directory. Please create one under the project root");
^

Error: > Couldn't find any `pages` or `app` directory. Please create one under the project root
at findPagesDir (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/lib/find-pages-dir.js:42:15)
at initialize (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:80:69)
at async NextCustomServer.prepare (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/next.js:246:28)

Node.js v18.20.5
/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/lib/find-pages-dir.js:42
throw new Error("> Couldn't find any `pages` or `app` directory. Please create one under the project root");
^

Error: > Couldn't find any `pages` or `app` directory. Please create one under the project root
at findPagesDir (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/lib/find-pages-dir.js:42:15)
at initialize (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:80:69)
at async NextCustomServer.prepare (/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/next.js:246:28)

Node.js v18.20.5
Perhaps it's a stupid mistake, but I'm not a Next.js expert and having a hard time wrapping my head around the problem.
GitHub
dokploy/CONTRIBUTING.md at canary · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?