I am trying to deploy a dash app using an Azure web app. In my head this should be so straight forward and yet I can't for the life of me figure this out.
- I have an Azure web app named
- I have a resource group named
- I have a Python package here
- The dash app is part of the Python package, once you install the package, a CLI becomes available to launch the app, along with a toy file to be used with the app.
I just want the VM that Azure spins up to run the following commands, which work perfectly fine on a local computer:
git clone https://github.com/lina-usc/pylossless.git
pip install -e .
pip install -e .[dash]
pylossless_qc --filepath assets/test_data/sub-s01/eeg/sub-s01_task-faceO_eeg.edf --disable_buttons
FWIW I have tried putting the above commands into a
startup.sh file in my project root directory (called
demo), set this file as the startup command, and then with azure CLI, ran:
az webapp up --name demo --resource-group my_group --sku B1 --runtime "PYTHON|3.8"
But this returns a
zip deployment failed error and the logs don't give me much information to work off of..
I can't figure out how to do this. What am I missing? Can anyone point me in the right direction?