diff --git a/MealPlan.Api/Dockerfile b/MealPlan.Api/Dockerfile index 981fc3a..255696e 100644 --- a/MealPlan.Api/Dockerfile +++ b/MealPlan.Api/Dockerfile @@ -1,5 +1,5 @@ # ---------- Build stage ---------- -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src # Restore first to leverage Docker layer caching. @@ -10,7 +10,7 @@ COPY . . RUN dotnet publish "MealPlan.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false # ---------- Runtime stage ---------- -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final WORKDIR /app # Run as the non-root user shipped in the aspnet image.