From 7559d433d53c457fbbcbf421d3232bffaaa1115a Mon Sep 17 00:00:00 2001 From: Fraser McLean Date: Mon, 2 Feb 2026 12:03:08 +0800 Subject: [PATCH 1/2] Update Dockerfiles to use .NET SDK and ASP.NET Core 10.0 --- backend/src/Api/Dockerfile | 4 ++-- backend/src/Jobs/Dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/Api/Dockerfile b/backend/src/Api/Dockerfile index f2819326..6656f315 100644 --- a/backend/src/Api/Dockerfile +++ b/backend/src/Api/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY *.props . @@ -14,7 +14,7 @@ COPY src/ . RUN dotnet publish "/src/Api/Api.csproj" -c $BUILD_CONFIGURATION -o /app # Runtime stage -FROM mcr.microsoft.com/dotnet/aspnet:9.0 +FROM mcr.microsoft.com/dotnet/aspnet:10.0 WORKDIR /app COPY --from=build /app . USER app diff --git a/backend/src/Jobs/Dockerfile b/backend/src/Jobs/Dockerfile index 00ad5332..f58a8094 100644 --- a/backend/src/Jobs/Dockerfile +++ b/backend/src/Jobs/Dockerfile @@ -1,6 +1,6 @@ # Jobs Functions App Dockerfile # This needs to be run from the backend directory (build context) -FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY *.props . @@ -13,8 +13,8 @@ RUN dotnet publish "./Jobs/Jobs.csproj" -c $BUILD_CONFIGURATION -o /app # To enable ssh & remote debugging on app service change the base image to the one below # FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0-appservice -FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0 +FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0 COPY --from=build ["/app", "/home/site/wwwroot"] ENV AzureWebJobsScriptRoot=/home/site/wwwroot ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true -LABEL org.opencontainers.image.source https://github.com/frasermclean/ratemypet +LABEL org.opencontainers.image.source=https://github.com/frasermclean/ratemypet From d9d7c559858c8e96bd7ab839b42cc8e6c03169e9 Mon Sep 17 00:00:00 2001 From: Fraser McLean Date: Mon, 2 Feb 2026 12:07:36 +0800 Subject: [PATCH 2/2] Update backend/src/Jobs/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- backend/src/Jobs/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/Jobs/Dockerfile b/backend/src/Jobs/Dockerfile index f58a8094..794638c5 100644 --- a/backend/src/Jobs/Dockerfile +++ b/backend/src/Jobs/Dockerfile @@ -12,7 +12,7 @@ COPY src/ . RUN dotnet publish "./Jobs/Jobs.csproj" -c $BUILD_CONFIGURATION -o /app # To enable ssh & remote debugging on app service change the base image to the one below -# FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0-appservice +# FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0-appservice FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0 COPY --from=build ["/app", "/home/site/wwwroot"] ENV AzureWebJobsScriptRoot=/home/site/wwwroot