use powershell windowsservercore docker image for release builds (#6226)

This commit is contained in:
Travis Plunk
2018-03-12 16:40:02 -07:00
parent 4aafe5b0ac
commit ea4ec0a373
@@ -1,10 +1,10 @@
# escape=`
#0.3.6 (no powershell 6)
FROM microsoft/windowsservercore
FROM microsoft/powershell:windowsservercore
LABEL maintainer='PowerShell Team <powershellteam@hotmail.com>'
LABEL description="This Dockerfile for Windows Server Core with git installed via chocolatey."
SHELL ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "-command"]
SHELL ["C:\\Program Files\\PowerShell\\latest\\pwsh.exe", "-command"]
# Install Git, and NuGet
# Git installs to C:\Program Files\Git
# nuget installs to C:\ProgramData\chocolatey\bin\NuGet.exe
@@ -21,8 +21,4 @@ RUN Import-Module ./containerFiles/wix.psm1; `
COPY PowerShellPackage.ps1 /
ADD https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.ps1 \install-powershell.ps1
RUN new-item -Path 'C:\Program Files\PowerShell\latest' -ItemType Directory; `
\install-powershell.ps1 -AddToPath -Destination 'C:\Program Files\PowerShell\latest'
ENTRYPOINT ["C:\\Program Files\\PowerShell\\latest\\pwsh.exe", "-command"]