Closed Miloky closed 2 months ago
We got this working by using azure-functions/dotnet:4-dotnet8.0, how ever our security scanner is complaining about CVE-2023-45853 when we do that.
We got this working by using azure-functions/dotnet:4-dotnet8.0, how ever our security scanner is complaining about CVE-2023-45853 when we do that.
Thank you! Updating the tag to 4-dotnet8.0 solved this issue for me. How did you come up with it? I have not seen mentions of 4-dotnet8.0 anywhere
It was a result of looking through pull requests on this repo and finding this one
https://github.com/Azure/azure-functions-docker/pull/1096
This mentioned something about ".NET 8 in proc changes for dedicated linux images" and this is where we found this tag - we tried it out of sheer desperation but it did work. Although we are still blocked due to the CVE for zlib (I'm not sure but this image may be using bookworm as a distro for debian instead of bullseye?)
Thanks you!
Have been stuck nearly an entire day getting my in-process .NET8 function working again after an upgrade. I was using all kinds of tags but dotnet:4-dotnet8.0 did it, specifically the .0 at the end.
The error I was getting was the following (for future reference), with the same result:
Error configuring services in an external startup class. Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Closing this issue.
Using azure-functions/dotnet:4-dotnet8.0
solved the issue for me.
I'm having this exception when trying trying to execute even the most basic function in docker container. Any ideas how to fix it? This is working fine with .net6, or when you try to run it locally.
Function1.cs
FunctionApp.csproj
host.json
local.settings.json
Dockerfile
docker-compose.yml
Repository with the code could be found here: https://github.com/Miloky/function-app