microsoft / dotnet-framework-docker

The repo for the official docker images for .NET Framework on Windows Server Core.
https://hub.docker.com/_/microsoft-dotnet-framework
MIT License
708 stars 335 forks source link

2019 images seems to be missing NGEN optimization #211

Closed artisticcheese closed 5 years ago

artisticcheese commented 5 years ago

Please see this announcement https://github.com/dotnet/announcements/issues/33 2019 Dockerfile missing all NGEN optimization stuff looks like.

artisticcheese commented 5 years ago

image

MichaelSimons commented 5 years ago

@NikolaMilosavljevic - @dleeapho asked if you could take a look at this? My initial look makes me suspicious this is an issue with both the 1809 and 1803 images. I wonder if Windows isn't re-running ngen after applying the .net LCU.

NikolaMilosavljevic commented 5 years ago

Running 'ngen update' definitely fixes the issue. Following up with Windows owners to understand their imaging process.

MichaelSimons commented 5 years ago

Assigning to Matt to validate. I see Windows has resolved the their infrastructure issue which is the supposed source of the underlying issue.

mthalman commented 5 years ago

@MichaelSimons - This doesn't seem to be resolved in the base image.

docker run --rm mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-1803 powershell -Command (Measure-Command { powershell -command exit }).TotalSeconds

Result: 2.187819

@NikolaMilosavljevic - What was the result of your follow-up with the Windows team?