Dockerfile HEALTHCHECK

Writing a Dockerfile is straightforward — slap a FROM, add some RUN commands, maybe throw in a CMD, and boom, you’re a Docker expert. But writing good Dockerfiles that follow best practices? That’s another level. To keep things short and precise, one thing that’s kinda underrated and if often mentioned is the HEALTHCHECK instruction. At the time I was mostly aware of it however it didn’t caught my attention until Trivy started complaining about AVD-DS-0026: No HEALTHCHECK defined as a LOW severity finding in our GitHub Actions pipeline. ...

June 18, 2025