How to speed up painfully slow Python deployments on Azure App Service?
We have a Python app that's deployed in an Azure App Service via BitBucket. Whenever the master
branch is updated, the code is pushed to the App Service, and Oryx builds the environment.
The problem is, these deployments are incredibly slow. It takes about 20-25 minutes for the system to fetch all dependencies, install them, and build the environment. We used to use AWS, and deployments were much faster (< 5 minutes). In looking at the logs, it seems that a considerable amount of time is spent fetching dependencies, installing them, and moving and compressing files.
Is there any way to speed this up? Maybe not have pip fetch everything each time we deploy code even when the dependencies haven't changed, or possibly avoid compressing files each time? Thanks!
Azure App Service
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more