Skip to content

Commit ea8f4a1

Browse files
authored
Windows Server Core 2019 Dockerfiles for 5.0 (#2274)
1 parent 6b8e241 commit ea8f4a1

File tree

65 files changed

+401
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+401
-64
lines changed

README.aspnet.preview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Tag | Dockerfile
104104
Tag | Dockerfile
105105
---------| ---------------
106106
5.0.0-rc.2-nanoserver-1809, 5.0-nanoserver-1809, 5.0.0-rc.2, 5.0, latest | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/aspnet/5.0/nanoserver-1809/amd64/Dockerfile)
107+
5.0.0-rc.2-windowsservercore-ltsc2019, 5.0-windowsservercore-ltsc2019 | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/aspnet/5.0/windowsservercore-ltsc2019/amd64/Dockerfile)
107108

108109
You can retrieve a list of all available tags for dotnet/nightly/aspnet at https://mcr.microsoft.com/v2/dotnet/nightly/aspnet/tags/list.
109110

README.runtime.preview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Tag | Dockerfile
100100
Tag | Dockerfile
101101
---------| ---------------
102102
5.0.0-rc.2-nanoserver-1809, 5.0-nanoserver-1809, 5.0.0-rc.2, 5.0, latest | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/runtime/5.0/nanoserver-1809/amd64/Dockerfile)
103+
5.0.0-rc.2-windowsservercore-ltsc2019, 5.0-windowsservercore-ltsc2019 | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/runtime/5.0/windowsservercore-ltsc2019/amd64/Dockerfile)
103104

104105
You can retrieve a list of all available tags for dotnet/nightly/runtime at https://mcr.microsoft.com/v2/dotnet/nightly/runtime/tags/list.
105106

README.sdk.preview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Tag | Dockerfile
105105
Tag | Dockerfile
106106
---------| ---------------
107107
5.0.100-rc.2-nanoserver-1809, 5.0-nanoserver-1809, 5.0.100-rc.2, 5.0, latest | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/sdk/5.0/nanoserver-1809/amd64/Dockerfile)
108+
5.0.0-rc.2-windowsservercore-ltsc2019, 5.0-windowsservercore-ltsc2019 | [Dockerfile](https://github.com/dotnet/dotnet-docker/blob/nightly/src/sdk/5.0/windowsservercore-ltsc2019/amd64/Dockerfile)
108109

109110
You can retrieve a list of all available tags for dotnet/nightly/sdk at https://mcr.microsoft.com/v2/dotnet/nightly/sdk/tags/list.
110111

eng/dockerfile-templates/aspnet/2.1/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.azureedge.net/do
1515
exit 1; `
1616
}; `
1717
`
18-
Expand-Archive aspnetcore.zip -DestinationPath dotnet; `
18+
mkdir dotnet; `
19+
tar -C dotnet -oxzf aspnetcore.zip; `
1920
Remove-Item -Force aspnetcore.zip
2021

2122

eng/dockerfile-templates/aspnet/3.1/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ RUN $aspnetcore_version = '{{VARIABLES["aspnet|3.1|build-version"]}}'; `
1616
exit 1; `
1717
}; `
1818
`
19-
Expand-Archive aspnetcore.zip -DestinationPath dotnet; `
19+
mkdir dotnet/shared/Microsoft.AspNetCore.App; `
20+
tar -C dotnet -oxzf aspnetcore.zip ./shared/Microsoft.AspNetCore.App; `
2021
Remove-Item -Force aspnetcore.zip
2122

2223

eng/dockerfile-templates/aspnet/5.0/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ RUN Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.azureedge.net/do
1717
exit 1; `
1818
}; `
1919
`
20-
Expand-Archive aspnetcore.zip -DestinationPath dotnet; `
20+
mkdir dotnet/shared/Microsoft.AspNetCore.App; `
21+
tar -C dotnet -oxzf aspnetcore.zip ./shared/Microsoft.AspNetCore.App; `
2122
Remove-Item -Force aspnetcore.zip
2223

2324

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# escape=`
2+
3+
ARG REPO=mcr.microsoft.com/dotnet/runtime
4+
FROM $REPO:5.0-{{OS_VERSION}}
5+
6+
ENV ASPNET_VERSION {{VARIABLES["aspnet|5.0|build-version"]}}
7+
8+
RUN powershell -Command `
9+
$ErrorActionPreference = 'Stop'; `
10+
$ProgressPreference = 'SilentlyContinue'; `
11+
`
12+
# Install ASP.NET Core Runtime
13+
Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$Env:ASPNET_VERSION/aspnetcore-runtime-$Env:ASPNET_VERSION-win-x64.zip; `
14+
$aspnetcore_sha512 = '{{VARIABLES["aspnet|5.0|win|x64|sha"]}}'; `
15+
if ((Get-FileHash aspnetcore.zip -Algorithm sha512).Hash -ne $aspnetcore_sha512) { `
16+
Write-Host 'CHECKSUM VERIFICATION FAILED!'; `
17+
exit 1; `
18+
}; `
19+
`
20+
tar -C $Env:ProgramFiles\dotnet -oxzf aspnetcore.zip ./shared/Microsoft.AspNetCore.App; `
21+
Remove-Item -Force aspnetcore.zip

eng/dockerfile-templates/runtime/2.1/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.azureedge.net/dotnet
1515
exit 1; `
1616
}; `
1717
`
18-
Expand-Archive dotnet.zip -DestinationPath dotnet; `
18+
mkdir dotnet; `
19+
tar -C dotnet -oxzf dotnet.zip; `
1920
Remove-Item -Force dotnet.zip
2021

2122

eng/dockerfile-templates/runtime/3.1/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN $dotnet_version = '{{VARIABLES["runtime|3.1|build-version"]}}'; `
1414
exit 1; `
1515
}; `
1616
`
17-
Expand-Archive dotnet.zip -DestinationPath dotnet; `
17+
mkdir dotnet; `
18+
tar -C dotnet -oxzf dotnet.zip; `
1819
Remove-Item -Force dotnet.zip
1920

2021

eng/dockerfile-templates/runtime/5.0/Dockerfile.nanoserver

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.azureedge.net/dotnet
1616
exit 1; `
1717
}; `
1818
`
19-
Expand-Archive dotnet.zip -DestinationPath dotnet; `
19+
mkdir dotnet; `
20+
tar -C dotnet -oxzf dotnet.zip; `
2021
Remove-Item -Force dotnet.zip
2122

2223

0 commit comments

Comments
 (0)