Skip to content

Commit

Permalink
[wasm] Install 7z in windows helix image (#476)
Browse files Browse the repository at this point in the history
Context: to reduce size in dotnet/runtime#54451
from cca 1.1GB to 220MB when using 7z instead of zip
  • Loading branch information
radekdoulik authored Jul 12, 2021
1 parent 6532e80 commit 37436dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/windowsservercore/2004/helix/webassembly/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:windowsservercore-2004-helix-amd64

# Install 7zip
ENV ZIP7_VERSION=1900

RUN curl -SL --output %TEMP%\7zip-x64.exe https://www.7-zip.org/a/7z%ZIP7_VERSION%-x64.exe \
&& mkdir C:\7z \
&& %TEMP%\7zip-x64.exe /S /D="C:\7z" \
&& setx PATH "%PATH%;C:\7z"

# Install arial font for chrome
COPY arial.ttf c:/windows/fonts

Expand Down

0 comments on commit 37436dd

Please sign in to comment.