How to optimize Microsoft/aspnet: 4.7.2

We have product-based company and we want to deploy our legacy application by using Docker tools or technology. We have lot of stack on Microsoft platform which we want to build Docker images. Our requirements are to host Microsoft asp.net MVC 5 application into Docker image. Which we want scale during the heavy workload. As far as my understanding is we could use docker “mcr.microsoft.com/dotnet/framework/aspnet:4.7.2” image but this image is too big in size, which we want to optimise up to some MB.

Can any one help me to setup how my Dockerfile would be?

Also should support threading and asynchronous call