# https://hub.docker.com/_/microsoft-dotnetFROM mcr.microsoft.com/dotnet/sdk:7.0 AS buildWORKDIR /source# copy csproj and restore as distinct layersCOPY *.sln .COPY OSRS-TaskAPI/*.csproj ./OSRS-TaskAPI/COPY OSRS-TaskAPI.Domain/*.csproj ./OSRS-TaskAPI.Domain/COPY OSRS-TaskAPI.Quests/*.csproj ./OSRS-TaskAPI.Quests/RUN dotnet restore# copy everything else and build appCOPY OSRS-TaskAPI/. ./OSRS-TaskAPI/WORKDIR /source/OSRS-TaskAPIRUN dotnet publish -c release -o /app --no-restore# final stage/imageFROM mcr.microsoft.com/dotnet/aspnet:7.0WORKDIR /appCOPY --from=build /app ./ENTRYPOINT ["dotnet", "OSRS-TaskAPI.dll"]