'how to add nextjs favicon and work with docker compose?

i am adding favicon to my site in nextjs and testing localhost:3000 the favicon appears normally but when starting the site by docker it does not appear. This led me to imagine that I will have problems when deploying the site. How to adjust to work with docker container?

I created a favicon.ico file in /public and added it to the head

<link rel="icon" type="image/x-icon" href="/favicon.ico" />


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source