Skip to content

Instantly share code, notes, and snippets.

@melvinlee
Created August 2, 2018 13:09
Show Gist options
  • Save melvinlee/8d3e20ffdc64273c5a131b0a95b59ee3 to your computer and use it in GitHub Desktop.
Save melvinlee/8d3e20ffdc64273c5a131b0a95b59ee3 to your computer and use it in GitHub Desktop.
Hydrate dotnet nuget packages.
FROM microsoft/dotnet:2.1-sdk
# warmup NuGet package cache
COPY packagescache.csproj /tmp/warmup/
RUN dotnet restore /tmp/warmup/packagescache.csproj \
--source https://api.nuget.org/v3/index.json \
--verbosity quiet \
&& rm -rf /tmp/warmup/
WORKDIR /
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeIdentifiers>debian.8-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="2.1.1" />
<PackageReference Include="Nancy" Version="2.0.0-clinteastwood" />
<PackageReference Include="coverlet.msbuild" Version="2.1.1" />
<PackageReference Include="FakeItEasy" Version="4.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="Shouldly" Version="3.0.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment