Deployment test Dash App on Azure.
$ git clone https://github.com/Oxylo/deploytst.git your_project_name
$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python app.py
with last line: app.run_server(host='0.0.0.0',debug=True, port=8050)
$ docker build -t dash-azure .
$ docker run -p 8050:8050 dash-azure
Create Container Registry on Azure (I called it canaryacr) and get its credentials to login:
$ docker login canaryacr.azurecr.io
Tag and push the image:
$ docker tag dash-azure canaryacr.azurecr.io/dash-azure:version1
$ docker push canaryacr.azurecr.io/dash-azure:version1
Create Web App resource on Azure and deploy version1.
Do not forget to configure Azure WebApp to appropriate port (in Azure cloud shell):
$ az webapp config appsettings set --resource-group CanaryResourceGroup --name cannnnn --settings WEBSITES_PORT=8080