By now, you might have understood the major use case of why one might use Azure Functions. Yes—when developing a piece of code and deploying it in a serverless environment, where a developer or administrator doesn't need to worry about the provisioning and scaling of instances for hosting your server-side applications.
By looking at the title of this recipe, you might already be wondering why and how deploying an Azure Function to a Docker container would help. Yes, the combination of Azure Functions and Docker Container might not make sense, as you would lose all the serverless benefits of Azure Functions when you deploy to Docker. However, there might be some customers whose existing workloads might be in some cloud (be it public or private), but now they want to leverage some of the Azure Function triggers and related Azure Services, and so would want to deploy the Azure Functions as a Docker image. This recipe deals with how to implement this.