Help with Nextjs Docker image build time in Github Actions
Unanswered
California pilchard posted this in #help-forum
California pilchardOP
Hi everyone,
I’m experiencing an issue with the build time for my Next.js Docker image in GitHub Actions. The process currently takes around 16 minutes. Below are my Dockerfile and GitHub Actions workflow configurations.
Could anyone help me optimize this to reduce the build time?
Thanks in advance for your assistance!
I’m experiencing an issue with the build time for my Next.js Docker image in GitHub Actions. The process currently takes around 16 minutes. Below are my Dockerfile and GitHub Actions workflow configurations.
Could anyone help me optimize this to reduce the build time?
Thanks in advance for your assistance!
4 Replies
Cesky Terrier
Hey, ever figure out a solution? Experiencing the same length of build times, even using a 8gb machine to run the action
California pilchardOP
@Cesky Terrier What I noticed is that when you remove the multiplatform configuration and build only for AMD or a single platform, the build process is faster. I’m not sure why this happens.
Cesky Terrier
Shame, I'm not using QEMU and just building for the machine I have so we've different problems I guess. Thanks for saying though!
Blue whiting
Could you please show the file in a readable format, also do you have a link to your repo?