Skip to content

Commit e948d7c

Browse files
author
John Howard
committed
Dockerfile back to old one
Signed-off-by: John Howard <jhoward@microsoft.com>
1 parent 9ee3149 commit e948d7c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Dockerfile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@
1111
#
1212
# http://github.com/jhowardmsft/busybox64
1313

14+
15+
#ADD https://github.com/jhowardmsft/busybox64/raw/master/busybox.exe?raw=true c:\\windows\\system32
16+
#SHELL ["powershell", "-command"]
17+
#RUN cd c:\windows\system32; busybox.exe --list | %{New-Item -ItemType Hardlink -Name $_`.exe -Target busybox.exe 2>&1 | Out-Null}
18+
#SHELL ["cmd", "/S", "/C"]
19+
#ENTRYPOINT ["busybox.exe"]
20+
21+
1422
FROM microsoft/nanoserver
15-
ADD https://github.com/jhowardmsft/busybox64/raw/master/busybox.exe?raw=true c:\\windows\\system32
16-
SHELL ["powershell", "-command"]
17-
RUN cd c:\windows\system32; busybox.exe --list | %{New-Item -ItemType Hardlink -Name $_`.exe -Target busybox.exe 2>&1 | Out-Null}
18-
SHELL ["cmd", "/S", "/C"]
19-
ENTRYPOINT ["busybox.exe"]
23+
RUN mkdir C:\tmp && mkdir C:\busybox
24+
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}
27+
ENTRYPOINT ["C:/busybox/busybox.exe"]

0 commit comments

Comments
 (0)