Hardening Dockerfiles to reach Docker Hub Health Score grade A: enforcing a non-root USER, minimal/distroless multi-stage base images, no fixable critical/high CVEs, no AGPL-3.0 deps, and SBOM+provenance attestations. Use when creating a new Dockerfile, auditing one for security, or preparing images for Docker Hub publication. Skip when the project has no Dockerfile, changes are app-code-only, or you consume pre-built images.
$npx -y skills add lerianstudio/ring --skill hardening-dockerfilesInstalls into the current project.
Run `npx skills use "https://github.com/lerianstudio/ring" --skill "lerianstudio/ring/hardening-dockerfiles"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/lerianstudio/ring" that are relevant to the current task. Run `npx skills add "https://github.com/lerianstudio/ring"` and select the relevant skills, then follow their instructions.