Next.js Discord

Discord Forum

Dockerize next.js app is not showing images

Unanswered
Giant Chinchilla posted this in #help-forum
Open in Discord
Giant ChinchillaOP
I can't see images When building and running my next.js app with docker image.

When i build and run my app using npm build and start, it works fine. i do have next.config.js remotePatterns but i started testing it and even when i run fersh new demo app using remotePatterns that should work with all image url's, it doesn't show the image.
{
protocol: "https",
hostname: "",
pathname: "/
",
},

Can someone help me understand how can i build and run my app with docker image and be able to use remote image urls?

Thanks

2 Replies

Šarplaninac
Faced an issue like that.
Would like to know the solution!
Turkish Angora
I faced a similar issues would need some help on the same.