0

I am trying to deploy flask based app to Azure. The app is working fine locally but I get Application error on Azure.

I checked the docker logs and found that container does'nt respond to the port. I have tried changing port by configuring WEBSITE_PORT, still same issue. enter image description here

1 Answers1

0
  • In Azure Portal = > Your Web App => Configuration => Application Settings ,

Add the WEBSITES_PORT app setting with a value of "8000" to expose that port.

  • Use the EXPOSE instruction in your Dockerfile to expose port 8000.
  • You can increase the start time restriction if your container takes a long time to start. Default time is 230 seconds for starting the container.
  • To configure , add an app setting WEBSITES_CONTAINER_START_TIME_LIMIT and set it to the number of seconds you would like to wait for your container to start (max of 1800 sec )

enter image description here

Please refer SO Thread