Skip to content
Back to skills

Docker Images

ASecurity

Use when writing or changing a Dockerfile: builds small images with multi-stage builds, pins base image versions, orders layers so dependency installs are cached, runs as a non-root user, and keeps build tools and source out of the final image.

  • 1,567 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsdocker

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add autonomous-ai/openharness --skill docker-images --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Images?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Images
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/autonomous-ai-docker-images/badge)](https://www.skillsdirectory.com/skills/autonomous-ai-docker-images)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker-images
description: "Use when writing or changing a Dockerfile: builds small images with multi-stage builds, pins base image versions, orders layers so dependency installs are cached, runs as a non-root user, and keeps build tools and source out of the final image."
---

Pin the base image by version. Copy the lockfile and install dependencies before copying source, so code edits do not bust the cache. Build in one stage and copy only the output into a slim runtime stage. Add a non-root user and a .dockerignore, and check the image size after each change.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.