Skip to content

Instantly share code, notes, and snippets.

@ironsoftwarebuild
Last active September 5, 2025 09:40
Show Gist options
  • Select an option

  • Save ironsoftwarebuild/f485b4bf812815180854fc7f3c24f02c to your computer and use it in GitHub Desktop.

Select an option

Save ironsoftwarebuild/f485b4bf812815180854fc7f3c24f02c to your computer and use it in GitHub Desktop.
# 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