Caching Docker layers on serverless build hosts with multi-stage builds, --target, and --cache-from

added by DotNetKicks
11/27/2018 10:29:42 AM

2 Kicks, 694 Views

In this post I describe how I improved the build performance of my ASP.NET Core Docker containers when building on a serverless host that doesn't provide any layer caching. I used a combination of multi-stage builds and caching from a remote repository to improve performance by avoiding repetitive work.