forked from dotnet/dotnet-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nanoserver-sac2016 Dockerfiles and add 1.* nanoserver-1809 Doc…
…kerfiles (dotnet#957)
- Loading branch information
1 parent
975e85e
commit 161ff89
Showing
34 changed files
with
123 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# escape=` | ||
|
||
# Installer image | ||
FROM mcr.microsoft.com/windows/servercore:1809 AS installer | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
# Retrieve .NET Core Runtime | ||
ENV DOTNET_VERSION 1.0.14 | ||
|
||
RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$Env:DOTNET_VERSION/dotnet-win-x64.$Env:DOTNET_VERSION.zip; ` | ||
$dotnet_sha512 = '42cbfdb97e75e84b075afeb4c943fcf2697f3f0c2d4a5541dead23e6b9d3954a5eff465a4d0b73393257151a905fadb3b022ce883e44d72448f25707218c54f2'; ` | ||
Expand-Archive dotnet.zip -DestinationPath dotnet; ` | ||
Remove-Item -Force dotnet.zip | ||
|
||
|
||
# Runtime image | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
COPY --from=installer ["/dotnet", "/Program Files/dotnet"] | ||
|
||
# In order to set system PATH, ContainerAdministrator must be used | ||
USER ContainerAdministrator | ||
RUN setx /M PATH "%PATH%;C:\Program Files\dotnet" | ||
USER ContainerUser |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# escape=` | ||
|
||
# Installer image | ||
FROM mcr.microsoft.com/windows/servercore:1809 AS installer | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
# Retrieve .NET Core Runtime | ||
ENV DOTNET_VERSION 1.1.11 | ||
|
||
RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$Env:DOTNET_VERSION/dotnet-win-x64.$Env:DOTNET_VERSION.zip; ` | ||
$dotnet_sha512 = '42cbfdb97e75e84b075afeb4c943fcf2697f3f0c2d4a5541dead23e6b9d3954a5eff465a4d0b73393257151a905fadb3b022ce883e44d72448f25707218c54f2'; ` | ||
Expand-Archive dotnet.zip -DestinationPath dotnet; ` | ||
Remove-Item -Force dotnet.zip | ||
|
||
|
||
# Runtime image | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
COPY --from=installer ["/dotnet", "/Program Files/dotnet"] | ||
|
||
# In order to set system PATH, ContainerAdministrator must be used | ||
USER ContainerAdministrator | ||
RUN setx /M PATH "%PATH%;C:\Program Files\dotnet" | ||
USER ContainerUser |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# escape=` | ||
|
||
# Installer image | ||
FROM mcr.microsoft.com/windows/servercore:1809 AS installer | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
# Install .NET Core SDK | ||
ENV DOTNET_SDK_VERSION 1.1.12 | ||
|
||
RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$Env:DOTNET_SDK_VERSION/dotnet-dev-win-x64.$Env:DOTNET_SDK_VERSION.zip; ` | ||
Expand-Archive dotnet.zip -DestinationPath dotnet; ` | ||
Remove-Item -Force dotnet.zip | ||
|
||
|
||
# SDK image | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
||
COPY --from=installer ["/dotnet", "/Program Files/dotnet"] | ||
|
||
# In order to set system PATH, ContainerAdministrator must be used | ||
USER ContainerAdministrator | ||
RUN setx /M PATH "%PATH%;C:\Program Files\dotnet" | ||
USER ContainerUser | ||
|
||
# Trigger first run experience by running arbitrary cmd to populate local package cache | ||
RUN dotnet help |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.