Dockerized a java spring boot app and deployed docker image to web app but the app is not accessible through Azure URL

Anup 1 Reputation point

Dockerized a java spring boot app and deployed docker image to web app but the app is not accessible.

I'm using Azure DevOps pipeline and created below steps.

Generated jar file using maven
Built a docker image from a Dockerfile
Pushed the docker image to ACR(tagged with build ID)
Created a linux web app and selected docker image from above step
ENV Accept_EULA is Y and container_start_time is 1800
The application is starting however it not accessible and displays below error in logs.

Container myapp_0_de5443dd for site myapp-backend-dev did not start within expected time limit. Elapsed time = 230.2631665 sec
Container myapp_0_de5443dd didn't respond to HTTP pings on port: 7300, failing site start. See container logs for debugging.
home/LogFiles/webssh/pm2.log ( undefinedwebssh2 Login: user=root from= host=undefined port=2222 sessionID=undefined allowreplay=undefinedHeaders: {"connection":"close","accept":"text/html, application/xhtml+xml, application/xml; q=0.9, /; q=0.8","accept-encoding":"br, gzip, deflate","accept-language":"en-gb","cookie":"ARRAffinity=0d7eaa93ccf04e2494816f0f168f4e2170cd80b95a36687e39877b2728981272","host":"","max-forwards":"10","referer":"","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15","x-client-ip":"","x-client-port":"57208","x-waws-unencoded-url":"/webssh/host","client-ip":"","x-arr-log-id":"SOMETHING-ee62-48cf-813a-724c9acb0ca0","disguised-host":"","x-site-deployment-id":"myapp","was-default-hostname":"","x-original-url":"/webssh/host","x-ms-client-principal-name":"EMAIL@something","x-ms-client-display-name":"SOME NAME","x-forwarded-for":"","x-arr-ssl":"2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT TLS CA 5|CN=*","x-forwarded-proto":"https","x-appservice-proto":"https"}Host from file: Local ident: 'SSH-2.0-ssh2js0.1.16'on.error - Error: connect ECONNREFUSED :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,179 questions
{count} votes