1

I have a Azure App Service Container failing on the healthcheck. My docker is a very light Alpine, but I do have netcat

The app service fails because port 80 is not responding on the container. The container is not a web server.

My Dockerfile: (there is no service to return on port 80 in this container )

EXPOSE 80
HEALTHCHECK --interval=5m --timeout=3s  CMD curl -f http://localhost/ || exit 1

What can I put in the dockerfile to be the healthcheck ? How do I write the Dockerfile ?

jlo-gmail
  • 4,453
  • 3
  • 37
  • 64

0 Answers0