csharp_dotnetcli_deps.include 888 B

12345678910111213141516171819202122
  1. # Install .NET Core 3.1 (to be able to run the netcoreapp3.1 targets)
  2. RUN curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/3.1.415/dotnet-sdk-3.1.415-linux-x64.tar.gz ${'\\'}
  3. && mkdir -p /usr/share/dotnet ${'\\'}
  4. && tar -zxf dotnet.tar.gz -C /usr/share/dotnet ${'\\'}
  5. && rm dotnet.tar.gz
  6. # Install .NET 6
  7. RUN curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-linux-x64.tar.gz ${'\\'}
  8. && mkdir -p /usr/share/dotnet ${'\\'}
  9. && tar -zxf dotnet.tar.gz -C /usr/share/dotnet ${'\\'}
  10. && rm dotnet.tar.gz
  11. # Make sure "dotnet" is on PATH
  12. RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
  13. # Trigger the population of the local package cache
  14. ENV NUGET_XMLDOC_MODE skip
  15. RUN mkdir warmup ${'\\'}
  16. && cd warmup ${'\\'}
  17. && dotnet new ${'\\'}
  18. && cd .. ${'\\'}
  19. && rm -rf warmup