This proposal captures the potential use of an ASP.NET specific Docker image that builds on what microsoft/dotnet
already provides.
We could build 2 images:
###microsoft/aspnet: This image would be optimised for you to load your already compiled ASP.NET applications into.
- Contains the same as the
microsoft/dotnet:1.0.0-core
, just a runtime and OS pre-reqs. - Contains a runtime cache of native assembly images. This cache would contain the closure of all or most of the packages that the ASP.NET team ships. ASP.NET packages + all their dependencies.
- In benchmarks we have shown that including all ASP.NET assemblies in a runtime cache increase the image size-on-disk by ~10mb whilst improving the start time of a container running MVC Music Store by ~32% (around a 3 second improvement). This improvement represents the time taken to JIT the applications dependencies.