Hello @Mislav Sagovac
According to Microsoft Dockerhub repo you are using image mcr.microsoft.com/azure-functions/dotnet:3.0-appservice
based on Debian 10 (Buster)
Unfortunately there is no gcc-9 or higher version of this package for Debian 10 (Buster)
https://packages.debian.org/search?keywords=gcc-9
I could suggest you to use newer Microsoft Dockerhub image mcr.microsoft.com/azure-functions/dotnet:4.0-appservice
or try to build it from sources https://gist.github.com/s3rvac/76ac07f21d5635209accc11fa56bd3fb
You will need to add few commands into your Dockerfile
ADD "https://gist.githubusercontent.com/s3rvac/76ac07f21d5635209accc11fa56bd3fb/raw/70c33cf0121348aa33a2159449ac64afcfac01b0/gcc-10-debian-buster.sh" /script/gcc-10-debian-buster.sh
RUN chmod +x /script/gcc-10-debian-buster.sh
RUN /script/gcc-10-debian-buster.sh
If you think your question has been answered, click "Mark as Accept Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.