Found this out and thought it was rather interesting. The #azcli has a command to build Docker images.
az acr build
It allows you to build a docker image right on the AZ CLI.
https://docs.microsoft.com/en-us/cli/azure/acr?view=azure-cli-latest#az-acr-build