dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.72k stars 1.07k forks source link

Azure Functions Dotnet (Isolated) for .NET 7.0 #29884

Open Arash-Sabet opened 1 year ago

Arash-Sabet commented 1 year ago

Is your feature request related to a problem? Please describe.

Dotnet-isolated featured tag is not listed here despite one can pull the image by running the following docker command:

docker pull mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated7.0

Describe the solution you'd like

The mentioned tag must be reflected on the registry.

Additional context

If the pulled image based on the command above is not official, please let the community know.

dotnet-issue-labeler[bot] commented 1 year ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

baronfel commented 1 year ago

I've notified our friends on the Azure Functions team to check this one out for triage.

Arash-Sabet commented 1 year ago

@baronfel As a side note, when one scaffolds a function app in VS 2022 for .NET 7.0 the following docker file is produced which has the tag to dotnet-isolated7.0. Also, I modified the file to use runtime:7.0 instead of runtime:6.0. That will be great if you have this discrepancy addressed too.

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated7.0 AS base
WORKDIR /home/site/wwwroot
EXPOSE 80

FROM mcr.microsoft.com/dotnet/runtime:7.0 as runtime7.0
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
# Copy .NET Core 7.0 runtime from the 7.0 image
COPY --from=runtime7.0 /usr/share/dotnet/host /usr/share/dotnet/host
COPY --from=runtime7.0 /usr/share/dotnet/shared /usr/share/dotnet/shared
WORKDIR /src
COPY ["FunctionAppDotnet7/FunctionAppDotnet7.csproj", "FunctionAppDotnet7/"]
RUN dotnet restore "FunctionAppDotnet7/FunctionAppDotnet7.csproj"
COPY . .
WORKDIR "/src/FunctionAppDotnet7"
RUN dotnet build "FunctionAppDotnet7.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "FunctionAppDotnet7.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /home/site/wwwroot
COPY --from=publish /app/publish .
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true
baronfel commented 1 year ago

I can make sure the functions team has that information, but I'm fairly sure that both of these requests will be routed to different areas/repos that dotnet/sdk. I'll poke them again today to see what's up.

Arash-Sabet commented 1 year ago

@baronfel @marcpopMSFT Any updates on this issue? Thanks.

baronfel commented 1 year ago

No, there are no updates. I can reach out to the Azure Functions team again.