All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists Almost every Dockerfile problem that reaches production was visible in the file the day it was written: an unpinned latest base image, a secret in an ARG, no non root user, apt get install without…

Dockerfile Lint Gate: hadolint, .dockerignore and Project Rules in One CI Check

A script that fails a pipeline when a Dockerfile or its build context breaks the rules, using hadolint from its container plus checks hadolint does not make (.dockerignore, a non-root USER, HEALTHCHECK, sudo), with a measured example of what a missing .dockerignore costs.

Sign in free to read this script, along with the rest of the library.

Sign in free