Skip to content

Commit

Permalink
restore space-saving measures
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Nov 29, 2024
1 parent 89ae21c commit dd5fbfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msvc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ WORKDIR /opt/msvc
COPY lowercase fixinclude install.sh vsdownload.py msvctricks.cpp ./
COPY wrappers/* ./wrappers/

# Remove the arm and x86 bits at the end to save space (around 5.5G)
RUN PYTHONUNBUFFERED=1 ./vsdownload.py --accept-license --dest /opt/msvc \
&& ./install.sh /opt/msvc \
&& rm lowercase fixinclude install.sh vsdownload.py \
&& rm -rf wrappers
&& find /opt/msvc -depth -type d -iregex '.*/.*arm[0-9]*$' -exec rm -fr {} \; \
&& find /opt/msvc -depth -type d -iregex '.*/.*x86$' -exec rm -fr {} \;
&& rm -rf wrappers \

COPY msvcenv-native.sh /opt/msvc

Expand Down

0 comments on commit dd5fbfb

Please sign in to comment.