I have a .NET Core project and a xUnit project to test it.
I later added support to Docker to my main .NET Core project. I target Linux and I added a bunch of operations in my Docker file. My Docker image is hosted on Docker Desktop for Windows. My project now requires to run on Docker Linux since it refers to resources I added in the Docker file.
I'm confused with what to do with my xUnit project. Should I add Docker support to it? I don't want to replicate the content of my main project's Docker file to the xUnit's Docker file since it might change and it will build an image that is unnecessarily large for the unit project.
Can I call my main project's image from my xUnit image? Or can I do without adding support to Docker to my unit project?
Thanks!
PS: I use Visual Studio 2019 on Windows