Hi Vladyslav Kolodka, here is my Dockerfile.
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1-sdk AS build
COPY FancyPoop/FancyPoop.csproj FancyPoop/
RUN dotnet restore FancyPoop/FancyPoop.csproj
COPY . .
Hi Sam Judson,
The biggest impact was the last one, precompilation of those .cshtml files.
On the development server, which is far slower in terms of hardware spec, just doing precompilation cut the load time from the initial 13 (yes, thirteen!) minutes to 2.5 minutes.
Hi Pak Arnold Siboro,
No, at least not from my experience. Even the default starter template project starts 10x faster. To my surprise, I did not expect to see “X microseconds” response time from my ASP.NET Core MVC project.
And .NET Core is getting even faster on every release…