We recently migrated our Azure Functions to .NET5 and we are running this function inside a docker container, however the image is builded but in run it is returned that Microsoft.AspNetCore.App was not found in version 5.0.0 and cannot handle the messages from Service Bus. DockerFile we are using:

Error: 
Does anyone have any ideas??