Skip to content

Commit

Permalink
Remove extra NuGet files from the default image.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Feb 8, 2018
1 parent 79fbe09 commit 14f6b4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ RUN ln -s python2.7 /usr/bin/python2
RUN ln -s python3.6 /usr/bin/python3
RUN ln -s python3 /usr/bin/python

# Install dotnet core SDK, pwsh, and other PS/.NET sanity test tools.
# For now, we need to manually purge XML docs and other items from a Nuget dir to vastly reduce the image size.
# See https://github.com/dotnet/dotnet-docker/issues/237 for details.
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-transport-https \
Expand All @@ -61,6 +64,8 @@ RUN apt-get update -y && \
dotnet-sdk-2.1.4 \
powershell \
&& \
find /usr/share/dotnet/sdk/NuGetFallbackFolder/ -name '*.xml' -type f -delete \
&& \
apt-get clean
RUN dotnet --version
RUN pwsh --version
Expand Down

0 comments on commit 14f6b4d

Please sign in to comment.