Last active
September 5, 2025 09:40
-
-
Save ironsoftwarebuild/f485b4bf812815180854fc7f3c24f02c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # escape=` | |
| FROM mcr.microsoft.com/windows/servercore:ltsc2016 AS baseOS | |
| RUN powershell -Command [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -UseBasicParsing -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1; ./dotnet-install.ps1 -InstallDir '/Program Files/dotnet' -Channel 3.1 -Runtime dotnet; Remove-Item -Force dotnet-install.ps1 && setx /M PATH "%PATH%;C:\Program Files\dotnet" | |
| COPY . . | |
| FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment