#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.FROM mcr.microsoft.com/dotnet/runtime:6.0 AS baseWORKDIR /appFROM mcr.microsoft.com/dotnet/sdk:6.0 AS buildWORKDIR /srcCOPY ["VidGrab/VidGrab.DatabaseIndexer.csproj", "Database/VidGrab/"]COPY ["VidGrab.Mongo/VidGrab.Mongo.csproj", "Database/VidGrab.Mongo/"]RUN dotnet restore "Database/VidGrab/VidGrab.DatabaseIndexer.csproj"COPY . .WORKDIR "/src/Database/VidGrab"RUN dotnet build "VidGrab.DatabaseIndexer.csproj" -c Release -o /app/buildFROM build AS publishRUN dotnet publish "VidGrab.DatabaseIndexer.csproj" -c Release -o /app/publish /p:UseAppHost=falseFROM base AS finalWORKDIR /appCOPY --from=publish /app/publish .ENTRYPOINT ["dotnet", "VidGrab.DatabaseIndexer.dll"]