Hi,
I am trying to convery my jupyter notebook as a simple web app using https://voila.readthedocs.io/en/stable/index.html. A docker image with all the required dependencies is created and the image works just fine when it's run on my desktop. Now an azure app service is created from the very same docker image and eposed the required ports in the docker container and also in app service configuration using both PORT and WEBSITES_PORT options and yet the app service returns "502 - Web server received an invalid response while acting as a gateway or proxy server."
Logs show a different port mapped to what is configured to run the docker image.
2022-03-21T08:07:32.735Z INFO - docker run -d -p 1658:8866 --name abc-test_0_8d420533 -e PORT=8866 -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITES_PORT=8866
8866 is the configured port but it's mapped to 1658. Am I missing something else ?