Hello @QA testing team !
Welcome to Microsoft QnA!
First of all , does your App works fine locally ? Test it first on local dev environment
Then , the error message you're seeing, "container ... didn't respond to HTTP pings on port: 8000," suggests that Azure App Service expects your container to respond to HTTP pings on port 8000. By default, Azure App Service uses port 8000 to ping the container to check its health. This is separate from the port on which your application listens.
Ensure that your Flask application is configured to respond to HTTP requests on port 5000 (as you mentioned), and you don't need to explicitly expose port 8000 in your Flask app.
Also , make sure that your Docker container is properly built and configured to run your Flask application on port 5000 and Double-check your Dockerfile to ensure that it correctly exposes port 5000 and runs your Flask application.
The timeout is most probable to occur due to the faulty container , aka your code
Then come back with your feedback !
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!