Hello @Maxime Meriaux
Thank you for describing the issue so clearly. I'm glad to hear the problem has resolved and I appreciate your follow-up note. Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'm reposting your solution here so that you can accept the answer.
Solution:
The issue was not related to the App Service configuration, Dockerfile, or the server setup. The container was correctly listening on port 8080, and Azure was properly configured to expect it.
The actual root cause was introduced after upgrading to Elysia 1.3.0 and integrating the Elysia CORS plugin. This plugin was returning an empty response, which caused Azure's health check to fail, triggering container restarts.
As a workaround, the CORS plugin was removed, and CORS was handled directly through the App Service configuration instead. This resolved the issue. Note that this bug has been fixed in Elysia version 1.3.1.
Please click Accept Answer and kindly click Yes so others experiencing a similar issue can benefit as well.