-
Notifications
You must be signed in to change notification settings - Fork 338
/
Copy pathDockerfile
27 lines (24 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2025-amd64
ENV `
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true `
COMPLUS_NGenProtectedProcess_FeatureEnabled=0
RUN `
# Install .NET Fx 3.5
dism /Online /Add-Capability /CapabilityName:NetFx3 `
`
# Apply latest patch
&& curl -fSLo patch.msu https://catalog.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/02cd9c83-8312-424d-9a06-b042095804a8/public/windows11.0-kb5054979-x64-ndp481_8e2f730bc747de0f90aaee95d4862e4f88751c07.msu `
&& mkdir patch `
&& expand patch.msu patch -F:* `
&& del /F /Q patch.msu `
&& dism /Online /Quiet /Add-Package /PackagePath:C:\patch\windows11.0-KB5054979-x64-ndp481.cab `
&& rmdir /S /Q patch `
`
# Ngen top of assembly graph to optimize a set of frequently used assemblies
&& %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen install "Microsoft.PowerShell.Utility.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" `
# To optimize 32-bit assemblies, uncomment the next line
# && %windir%\Microsoft.NET\Framework\v4.0.30319\ngen install "Microsoft.PowerShell.Utility.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" `
&& %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen update `
&& %windir%\Microsoft.NET\Framework\v4.0.30319\ngen update