title: How to perform Health check in a docker console app
body: <p>I have a .net 2.2 core console app that is running permanently as a HostedService in a docker container. It is not using ASPNet.Core and it's not an API, it's a pure .net-core application.</p>
  
  <p>When started, it performs a number of healthchecks and when starts running.</p>
  
  <p>I'm trying to write a cake build script and to deploy in docker, and run some mocha integration tests. However, the integration step doesn't wait for the console app to complete its health checks and the integration fails.</p>
  
  <p>All the health check guides I read are for an API. I don't have an API and there are no endpoints. How can I make docker wait for the console app to be ready?</p>
  
  <p>Thanks in advance</p>