A production-focused guide for building, scanning, and running containers securely — from Dockerfile authoring through runtime enforcement and supply chain integrity.
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
github-actions-advanced
docker-expert
kubernetes-architect
api-security-best-practices
USER declared before CMD/ENTRYPOINT
@sha256:... digest (not just tag)ENV, ARG, or RUN commandsHEALTHCHECK definedorg.opencontainers.image.*).dockerignore excludes .git, .env, secrets, testsENTRYPOINT uses exec form, not shell formtrivy --scanners secret).trivyignore has justified entries for accepted CVEs--read-only filesystem--cap-drop ALL (add back only what's documented as required)--security-opt no-new-privileges:true
--security-opt seccomp=<profile> applied--memory, --cpus, --pids-limit)readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true with explicit UIDcapabilities.drop: ["ALL"]
requests and limits definedautomountServiceAccountToken: false
restricted levelNetworkPolicy default-deny applied