Skip to content

Commit 42f69de

Browse files
committed
[windows-build-uwp-461] update to windowsservercore:10.0.14393.2312;
follow best practices to not use powershell alias.
1 parent 1518aaf commit 42f69de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
FROM microsoft/windowsservercore
2-
MAINTAINER xied75@gmail.com
1+
FROM microsoft/windowsservercore:10.0.14393.2312
2+
LABEL maintainer="xied75@gmail.com"
33

44
RUN powershell -Command \
55
mkdir c:\install_logs; \
6-
wget https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe -OutFile NDP461-DevPack-KB3105179-ENU.exe; \
6+
Invoke-WebRequest https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe -OutFile NDP461-DevPack-KB3105179-ENU.exe; \
77
Start-Process -FilePath "C:\NDP461-DevPack-KB3105179-ENU.exe" -ArgumentList /Passive, /NoRestart, /Log, c:\install_logs\NDP461-DevPack-KB3105179-ENU.log -PassThru -Wait; \
88
rm NDP461-DevPack-KB3105179-ENU.exe; \
9-
wget https://coderobin.blob.core.windows.net/public/Microsoft/update3/PortableLibrary.zip -OutFile PortableLibrary.zip; \
9+
Invoke-WebRequest https://coderobin.blob.core.windows.net/public/Microsoft/update3/PortableLibrary.zip -OutFile PortableLibrary.zip; \
1010
Expand-Archive -Path PortableLibrary.zip -DestinationPath /; \
1111
Start-Process -FilePath msiexec.exe -ArgumentList /i, "C:\PortableLibrary\enu\PortableLibrary_DTPLP.msi", EXTUI=1, /qn, /L, c:\install_logs\PortableLibrary_DTPLP.install.log -PassThru -Wait; \
1212
Start-Process -FilePath msiexec.exe -ArgumentList /i, "C:\PortableLibrary\PortableLibrary_DTP.msi", EXTUI=1, /qn, /L, c:\install_logs\PortableLibrary_DTP.install.log -PassThru -Wait; \
1313
rm PortableLibrary.zip; \
1414
rm -Recurse -Force PortableLibrary; \
15-
wget http://download.microsoft.com/download/4/3/3/4330912d-79ae-4037-8a55-7a8fc6b5eb68/buildtools_full.exe -OutFile buildtools_full.exe; \
15+
Invoke-WebRequest http://download.microsoft.com/download/4/3/3/4330912d-79ae-4037-8a55-7a8fc6b5eb68/buildtools_full.exe -OutFile buildtools_full.exe; \
1616
Start-Process -FilePath "C:\buildtools_full.exe" -ArgumentList /Passive, /NoRestart, /Log, c:\install_logs\build-tools-2015.log -PassThru -Wait; \
1717
rm buildtools_full.exe; \
18-
wget https://coderobin.blob.core.windows.net/public/Microsoft/update3/BuildTools_MSBuildNuGet.zip -OutFile BuildTools_MSBuildNuGet.zip; \
18+
Invoke-WebRequest https://coderobin.blob.core.windows.net/public/Microsoft/update3/BuildTools_MSBuildNuGet.zip -OutFile BuildTools_MSBuildNuGet.zip; \
1919
Expand-Archive -Path BuildTools_MSBuildNuGet.zip -DestinationPath /; \
2020
Start-Process -FilePath msiexec.exe -ArgumentList /i, "C:\BuildTools_MSBuildNuGet\BuildTools_MSBuildNuGet.msi", /qn, /L, c:\install_logs\BuildTools_MSBuildNuGet.install.log -PassThru -Wait; \
2121
rm BuildTools_MSBuildNuGet.zip; \
2222
rm -Recurse -Force BuildTools_MSBuildNuGet; \
23-
wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile C:\nuget.exe;
23+
Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile C:\nuget.exe;
2424

25-
CMD [ "powershell" ]
25+
CMD [ "powershell" ]

0 commit comments

Comments
 (0)