Next.js Discord

Discord Forum

Building nextjs in docker takes too long

Unanswered
Giant Angora posted this in #help-forum
Open in Discord
Giant AngoraOP
So I have a small project which I want to host on the Pi.

During the build process within docker RUN bun next build

It stays on optimising build and then crashes the system.

I try the same locally with docker and it crashes as well. I try running bun next build locally without docker and it works no issue.

I'm lost on why this is the case and got no clue

It goes to 600s and then crashes the system where I'd have to restart it / boot it back up

0 Replies