Next.js Discord

Discord Forum

Building for production with Docker

Unanswered
Dutch Shepherd posted this in #help-forum
Open in Discord
Dutch ShepherdOP
Has anyone encountered an issue using the with-docker example that Next it does not take dynamic routes into account when using the Dockerfile provided in the example?
I see that the build does not even list the dynamic routes. When an app has dynamic routes, it lists it out during the build as a print out log message. But it does not seem to do that for some reason when using that Dockerfile.

2 Replies

Dutch ShepherdOP
Yeah I dug into the logs some more and realized that docker COPY command , e.g. COPY . . isnt copying the folders with brakcets in the name, like the dynamic routes ones..