1
1
# escape=`
2
2
#0.3.6 (no powershell 6)
3
3
# FROM microsoft/windowsservercore
4
- FROM microsoft/dotnet- framework:4.7.1
4
+ FROM mcr. microsoft.com /dotnet/ framework/sdk :4.8
5
5
LABEL maintainer='PowerShell Team <powershellteam@hotmail.com>'
6
6
LABEL description="This Dockerfile for Windows Server Core with git installed via chocolatey."
7
7
@@ -14,19 +14,20 @@ COPY dockerInstall.psm1 containerFiles/dockerInstall.psm1
14
14
RUN Import-Module PackageManagement; `
15
15
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; `
16
16
Import-Module ./containerFiles/dockerInstall.psm1; `
17
+ [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12; `
17
18
Install-ChocolateyPackage -PackageName git -Executable git.exe; `
18
19
Install-ChocolateyPackage -PackageName nuget.commandline -Executable nuget.exe -Cleanup; `
19
20
Install-Module -Force -Name platyPS -Repository PSGallery; `
20
21
Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -outfile C:/dotnet-install.ps1; `
21
22
C:/dotnet-install.ps1 -Channel Release -Version 2.1.4; `
22
23
Add-Path C:/Users/ContainerAdministrator/AppData/Local/Microsoft/dotnet;
23
24
24
- RUN Import-Module ./containerFiles/dockerInstall.psm1; `
25
+ # RUN Import-Module ./containerFiles/dockerInstall.psm1; `
25
26
# git clone https://Github.com/PowerShell/PSScriptAnalyzer; `
26
- Install-ChocolateyPackage -PackageName dotnet4.5;
27
+ # Install-ChocolateyPackage -PackageName dotnet4.5;
27
28
28
- RUN Import-Module ./containerFiles/dockerInstall.psm1; `
29
- Install-ChocolateyPackage -PackageName netfx-4.5.2-devpack;
29
+ # RUN Import-Module ./containerFiles/dockerInstall.psm1; `
30
+ # Install-ChocolateyPackage -PackageName netfx-4.5.2-devpack;
30
31
31
32
COPY buildPSSA.ps1 containerFiles/buildPSSA.ps1
32
33
0 commit comments