HEALTHCHECK

Difficulty: Intermediate

Question

What is the HEALTHCHECK instruction in a Dockerfile?

Answer

It tells Docker how to test if the container is still working (e.g., by running a `curl` command against the app's health endpoint).

Concepts covered

Health, Dockerfile