Best Practice for Docker with .Net Core & Unit Testing projects

VENKATESH 21 Reputation points
2021-06-28T07:59:29.967+00:00

Let's say I have a Visual Studio solution with .Net Core Projects and Unit Tests, along with Docker Support (Dockerfile). What is the best practice in this case? I saw some blogs/articles where .Net Core Projects Compilation and Unit Test Execution are all being done inside the same Dockerfile. Is this correct or recommended? If not, what is the best practice? To have separate Dockerfile for Compilation and Unit Tests? If yes, is there any documentation / links, where this is outlined? Please help.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,367 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 4,662 Reputation points Microsoft Employee
    2021-07-03T03:42:23.777+00:00
    0 comments No comments