question

akg777-0060 avatar image
0 Votes"
akg777-0060 asked ·

Avoiding reinstallation of modules after each deployment

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DabhanMSFT-1185 avatar image
0 Votes"
DabhanMSFT-1185 answered ·

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?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.