It turns out that you can use an Azure Container Apps Jobs with a mounted volume to run the Azure DevOps pipeline.
https://learn.microsoft.com/en-us/azure/container-apps/tutorial-ci-cd-runners-jobs?pivots=container-apps-jobs-self-hosted-ci-cd-azure-pipelines&tabs=bash