Next.js Discord

Discord Forum

Why don't many people use Docker for NextJS apps?

Unanswered
Western harvester ant posted this in #help-forum
Open in Discord
Western harvester antOP
Hey,
Looking at boilerplates/tutorials on nextjs, I realized that they never use Docker to conteunerize nextjs apps.
While it's the opposite for APIs, it's not uncommon to see Docker being used.
My question is: why? Is Docker irrelevant for Next/Frontend apps? Is it because hot reloading might be slower on Docker?

2 Replies

imo using docker for dev doesn't make sense as it adds extra overhead and might be slow on top of existing slowness next comes with but I surely use docker to deploy
setting up docker for development mode's hot module reload is a pain

and grossly unnecessary for dev mode as it's expected you as the developer will have nodejs installed, and if nodejs is installed nextjs will run just fine without any docker shenanigans