Remove extra NuGet files from the default image.

This commit is contained in:
Matt Clay 2018-02-08 13:07:47 -08:00
parent 79fbe09a4d
commit 14f6b4d766

View file

@ -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 \
@ -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