DokployD
Dokploy14mo ago
randhash

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/next@15.0.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/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/next@15.0.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/lib/find-pages-dir.js:42:15)
    at initialize (/app/node_modules/.pnpm/next@15.0.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/next/dist/server/lib/router-server.js:80:69)
    at async NextCustomServer.prepare (/app/node_modules/.pnpm/next@15.0.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/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
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
Was this page helpful?