Build ASP.NET MVC 4 app in Docker container

Is it possible to build an asp net mvc 4 application in a Docker container. I see there are workflows/guides for how to run an asp net mvc 4 app within a Docker container, but haven’t seen anything that guides you on how to build the app in a container from source, and then host it in the container…???
I see there are instructions on how to do this with .NET Core… is this just not possible in asp net mvc?