Avoiding reinstallation of modules after each deployment

akg777 1 Reputation point
2019-12-13T04:20:52.223+00:00

Hi,

I am running an Azure App Service on Python which requires a lot of modules/Python packages to work. I wanted to ask if there is any way to prevent reinstalling them every time I deploy my app? I am using the "az webapp up" command to deploy the app and it seems to reset my server to its initial state after each deployment (which doesn't come built in with the modules I need).

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,338 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dabhan-MSFT 21 Reputation points Microsoft Employee
    2019-12-21T07:45:13.517+00:00

    All the modules have to be mentioned in requirements.txt

    SCM_DO_BUILD_DURING_DEPLOYMENT = false

    If we sets this, kudu deployment script shouldn't run

    Does this answer your query?

    No comments