Building for production with Docker
Unanswered
Dutch Shepherd posted this in #help-forum
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.
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 Shepherd 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.
Fire ant
Show the next build log from the docker... is the build list dynamic routes without docker?
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..