Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Docker

Container optimization, security hardening, multi-stage builds, and production deployment patterns for Docker and Docker Compose.

What's Inside

  • Multi-stage build patterns (deps → build → production)
  • Security-hardened containers (non-root users, capability drops, read-only filesystem)
  • Production Docker Compose with health checks, secrets, resource limits, and network isolation
  • Comprehensive .dockerignore template
  • Build cache optimization with BuildKit mount caches
  • Build-time secrets (never stored in image layers)
  • Multi-architecture builds with buildx
  • Framework-specific Dockerfiles (Next.js, Python FastAPI, Go distroless)
  • Troubleshooting guide (image size, build performance, debugging)
  • Review checklist for Dockerfile, security, and Compose

When to Use

  • Optimizing Dockerfiles for image size and build speed
  • Debugging container issues
  • Security hardening containers for production
  • Setting up Docker Compose for development and production
  • Configuring networking, health checks, and secrets

Installation

npx add https://github.com/wpank/ai/tree/main/skills/devops/docker

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install docker

Manual Installation

Cursor (per-project)

From your project root:

mkdir -p .cursor/skills
cp -r ~/.ai-skills/skills/devops/docker .cursor/skills/docker

Cursor (global)

mkdir -p ~/.cursor/skills
cp -r ~/.ai-skills/skills/devops/docker ~/.cursor/skills/docker

Claude Code (per-project)

From your project root:

mkdir -p .claude/skills
cp -r ~/.ai-skills/skills/devops/docker .claude/skills/docker

Claude Code (global)

mkdir -p ~/.claude/skills
cp -r ~/.ai-skills/skills/devops/docker ~/.claude/skills/docker

Related Skills

  • kubernetes — Kubernetes manifest generation and deployment
  • prometheus — Monitoring and alerting for containerized services

Part of the DevOps skill category.