I created a Docker image while building a docker environment with .NET web application. We installed WSL2, Ubunt and Docker Detsktop and used Docker Support for Visual Studio.
-Docker file
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
ARG source
WORKDIR /inetpub/wwwroot
COPY ${source:-obj/Docker/publish} .
-Operating system image GB
-Sources image 8GB
The same capacity is the same when you do not use Docker support and docker build.
The capacity is so large that it takes a lot of time to save images, so I would like to ask if there is a way to use the operating system image by imaging only the program source.