Nginx + Docker + Next.js
Unanswered
Common Moorhen posted this in #help-forum
Common MoorhenOP
I want node and nginx to be in the same Dockerfile.
Can I know how i can create a dockerfile to serve my web applications. (Statically generted and also the other application is with the functionality of a server).
When i try this only the index file of nginx is served.
Can I know how i can create a dockerfile to serve my web applications. (Statically generted and also the other application is with the functionality of a server).
When i try this only the index file of nginx is served.
3 Replies
Common MoorhenOP
COPY --from=builder /app/out /usr/share/nginx/html/ . I set the output in next.config.js to be export. How can I fix it?
actually that has nothing to do with Next.js, but it is simply docker stuff. you need docker-compose or kubernetes to run multiple images. u can find so many blogs about dockerizing Nginx and Node.js on the net.
GCP Cloud Run sidecars work as well.