Skip to content
Back to skills

Forge Docker Best Practices

ASecurity

Small, secure, reproducible container images

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsnodedockergit

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-docker-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Docker Best Practices?

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

Security grade badge for Forge Docker Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-docker-best-practices/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-docker-best-practices)

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: forge-docker-best-practices
description: Small, secure, reproducible container images
---

<!-- Generated from catalog/skills/docker-best-practices/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# Docker Best Practices
- Pin base images by digest; prefer slim/distroless.
- Multi-stage builds; copy only build outputs into the final stage.
- Run as a non-root user; read-only filesystem where possible.
- Never bake secrets into layers; use build secrets or runtime env.
- `.dockerignore` excludes `.git`, `node_modules`, `.env`.

## Verify
`docker build` succeeds, `docker run --rm <image> id -u` is not 0, the image size is reported, and `docker history` shows no secrets in any layer.

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.