I’m trying to deploy a Quart application to Azure App Service using a Docker container, but I’m running into an issue where the Docker container fails to start on port 8000 and disconnects.
from quart import Quart
app = Quart(__name__)
@app.route('/')
async def hello():
return 'Hello, World!'
if __name__ == '__main__':
app.run()
Startup command Used : hypercorn -b 0.0.0.0:8080 app:app
Other configurations
SCM_DO_BUILD_DURING_DEPLOYMENT=1
Deployment Type : Manual Deployment from VS Code
App service Plan : Basic – Linux
Error Faced: ERROR – Container for site has exited, failing site start
ERROR – Container didn’t respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.
Expected Outcome:
Container needs to be started and need to also verify the startup command given was correct w.r.t to Quart