File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2020
2121
2222FROM microsoft/nanoserver
23- RUN mkdir C:\t mp && mkdir C:\b usybox
23+ RUN mkdir C:\t mp && mkdir C:\b usybox && mkdir C: \p owershell
2424ADD https://github.com/jhowardmsft/busybox64/raw/master/busybox.exe?raw=true /busybox/
25- RUN setx /M PATH "C:\b usybox;%PATH%"
26- RUN powershell busybox.exe --list ^|%{$nul = cmd /c mklink C:\b usybox\$ _.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:\p owershell.zip
26+ RUN setx /M PATH "C:\b usybox;c:\p owershell;%PATH%"
27+ RUN cd c:\p owershell && tar.exe -xf c:\p owershell.zip
28+ RUN pwsh -command busybox.exe --list ^|%{$nul = cmd /c mklink C:\b usybox\$ _.exe busybox.exe}
2729ENTRYPOINT ["C:/busybox/busybox.exe" ]
You can’t perform that action at this time.
0 commit comments