diff --git a/backend/src/Api/Dockerfile b/backend/src/Api/Dockerfile index f281932..6656f31 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 00ad533..794638c 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 . @@ -12,9 +12,9 @@ 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-isolated9.0 +# 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 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