Thanks for the additional info.
Please enable and review logs to fetch more details about the error and let us know: #enable-application-logging-linuxcontainer and Access log files
By default, App Service assumes your custom container is listening on port 80.
If you’re running a (custom container) with Web App for Containers, use WEBSITES_PORT. Ensure that this is set to the port that’s also exposed in your Dockerfile through the EXPOSE
instruction Vs On App Service Linux, using (Blessed Images) - use PORT
, which directly influences the container port of the docker run
command.
Ensure that your application is listening on the correct port. In your Dockerfile, you have EXPOSE
Ports', make sure these ports are correctly configured in your application code and match the ports exposed in the Dockerfile.