Next.js Discord

Discord Forum

Turborepo with Dockerfile 'server.js' not found when running image

Answered
Bighead carp posted this in #help-forum
Open in Discord
Bighead carpOP
I'm trying to move to turborepo, I've rewritten my Dockerfile, it builds but the entry point is completely different to what the Turborepo docs say.

CMD ["node", "/app/apps/web/.next/standalone/apps/web/server.js"]
Answered by Bighead carp
It was fixed by adding this line to my next.config.ts
View full answer

2 Replies

Bighead carpOP
Bighead carpOP
It was fixed by adding this line to my next.config.ts
Answer