Skip to content

Commit cbbfa92

Browse files
author
John Howard
authored
Merge pull request #1 from jhowardmsft/powershell
For RS4, use openpowershell
2 parents e948d7c + 6e5b685 commit cbbfa92

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020

2121

2222
FROM microsoft/nanoserver
23-
RUN mkdir C:\tmp && mkdir C:\busybox
23+
RUN mkdir C:\tmp && mkdir C:\busybox && mkdir C:\powershell
2424
ADD https://github.com/jhowardmsft/busybox64/raw/master/busybox.exe?raw=true /busybox/
25-
RUN setx /M PATH "C:\busybox;%PATH%"
26-
RUN powershell busybox.exe --list ^|%{$nul = cmd /c mklink C:\busybox\$_.exe busybox.exe}
25+
RUN curl.exe -fsSL "https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.zip" -o c:\powershell.zip
26+
RUN setx /M PATH "C:\busybox;c:\powershell;%PATH%"
27+
RUN cd c:\powershell && tar.exe -xf c:\powershell.zip
28+
RUN pwsh -command busybox.exe --list ^|%{$nul = cmd /c mklink C:\busybox\$_.exe busybox.exe}
2729
ENTRYPOINT ["C:/busybox/busybox.exe"]

0 commit comments

Comments
 (0)