-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (16 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
17 lines (16 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# escape=`
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
# Install pwsh, VS BuildTools 2019 with F#, .NET Core 3.1.301, AWS CLI, WiX.
RUN dotnet tool install --global PowerShell ; `
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) ; `
choco feature enable -n allowGlobalConfirmation ; `
choco install visualstudio2019-workload-manageddesktopbuildtools --package-parameters '--add Microsoft.VisualStudio.Component.FSharp.MSBuild' ; `
choco install dotnetcore-sdk --version=3.1.301 ; `
choco install awscli ; `
Invoke-WebRequest -OutFile wix314.exe https://wixtoolset.org/downloads/v3.14.0.5722/wix314.exe ; `
Start-Process wix314.exe -Wait -ArgumentList '/install /quiet /norestart' ; `
Remove-Item wix314.exe ; `
$Env:NewPATH=[System.Environment]::GetEnvironmentVariable('Path', 'Machine') ; `
$Env:NewPATH=$Env:NewPATH -replace [regex]::Escape('2022'), '2019' ; `
$Env:NewPATH=$Env:NewPATH + ';' ; `
setx /M PATH $Env:NewPATH