chore: use proper base images for .NET 10 when building blog image

This commit is contained in:
Stevan Freeborn
2025-11-22 07:23:02 -06:00
parent 1693452116
commit 157f32efc8
+2 -2
View File
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS setup-stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS setup-stage
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
@@ -13,7 +13,7 @@ CMD ["dotnet", "watch"]
FROM setup-stage as build-stage
RUN dotnet publish -c Release -o dist
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS production-stage
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS production-stage
WORKDIR /app
COPY --from=build-stage /app/dist ./
ENTRYPOINT ["dotnet", "Blog.dll"]