Building a Docker image with non-standalone next.js app
Unanswered
Forest yellowjacket posted this in #help-forum
Forest yellowjacketOP
Hi I'm trying to follow the example https://github.com/vercel/next.js/blob/canary/examples/with-docker-multi-env/docker/development/Dockerfile but my application is not a standalone and docker build is failing on pre-rendering a page that needs db access, at
npm run build. How to build an image then? Should I have an entry point as npm run start?