I have configured a self-hosted Linux agent based on Ubuntu 20.04 running in a Docker container. It reports in to the agent pool and runs correctly. I'll be running the agents in AWS Fargate.
My question is whether it is considered a best practice to install the dotnet SDK in my Docker image, which will increase the size of the image considerably, or if it is better to leave it out and require build pipelines to install it via the UseDotNet@2 task, which would cause a delay every time a new agent spins up?
Is there a best practice or general guidance, and can anyone cite documentation?
Thanks!