Skip to main content
ZICQ

Skills ZICQ category:Security docker-containerization

Docker Containerization

Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes. Use when containerizing applications, creating Dockerfiles, optimizing container images, or setting up Docker Compose services.

683 installs

Official URL:skills.sh

What this skill does

Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.

What it does

Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes

When to use it

](#when-to-use)

How agents load it

Per Agent Skills progressive disclosure: name and description load at startup (~100 tokens); the full SKILL.md body loads when the skill activates; scripts/, references/, and assets/ load only as needed. This file's sections: Docker Containerization; Table of Contents; Overview; When to Use; Quick Start; Multi-stage build for Node.js application.

File analysis

File analysis: besides SKILL.md, the body references references/multi-stage-builds.md, references/optimization-techniques.md, references/security-best-practices.md, references/docker-compose-for-multi-container.md, references/dockerignore-file.md, references/python.md. Those resources load on demand.

Docker ContainerizationTable of ContentsOverviewWhen to UseQuick StartMulti-stage build for Node.js applicationStage 1: BuildStage 2: ProductionCopy only production dependencies and built filesSecurity: Run as non-root userReference GuidesBest Practices

Source category:skills.sh agent-skill

SKILL.md & Agent activation

Official spec ↗
name
docker-containerization
description
Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes. Use when containerizing applications, creating Dockerfiles, optimizing container images, or setting up Docker Compose services.
  1. DiscoverThe client exposes names and descriptions to the agent.
  2. ActivateYour request or the task context selects the skill and loads its instructions.
  3. Load resourcesReferenced scripts, documentation and assets are used when needed.
Files referenced by the instructions · 6
  • references/multi-stage-builds.md
  • references/optimization-techniques.md
  • references/security-best-practices.md
  • references/docker-compose-for-multi-container.md
  • references/dockerignore-file.md
  • references/python.md

These paths are extracted from the text. Check the upstream package to verify the files exist.

Invocation syntax and available tools depend on your Agent client. Client integration guide ↗

Install this skill

Skills CLI ↗

Choose the target agent and installation scope, keep referenced package files, then verify the skill appears in the client's catalog.

This skill references supporting files. Retrieve the complete directory from the source; copying SKILL.md alone may leave missing dependencies.

Ask your Agent to install

Copy these instructions to a compatible agent and confirm the target directory matches your client.

Install the agent skill "docker-containerization" into my project. The full SKILL.md and official description are at https://zicq.com/en/skills/skl-cc7814f8763be614-Docker-Containerization.html
Save it as .cursor/skills/docker-containerization/SKILL.md or .claude/skills/docker-containerization/SKILL.md and keep the frontmatter name and description exactly as-is.
This skill also ships scripts/, references/, or assets/ — fetch the whole folder from https://github.com/aj-geddes/useful-ai-prompts instead of creating only a SKILL.md.

Full package on GitHub ↗

Install from the terminal · Skills CLI

Requires Node.js and npx. First inspect the repository's skill list to confirm the name.

npx skills add 'https://github.com/aj-geddes/useful-ai-prompts' --list

npx skills add 'https://github.com/aj-geddes/useful-ai-prompts' --skill 'docker-containerization'

The CLI lets you choose the agent interactively. The default scope is the project; use -g for user scope. Confirm package availability with the discovery command, then use npx skills list to inspect installed skills.

Readable layout

name: docker-containerization description: > Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes. Use when containerizing applications, creating Dockerfiles, optimizing container images, or setting up Docker Compose services.

Docker Containerization

Table of Contents

Overview

Build production-ready Docker containers following best practices for security, performance, and maintainability.

When to Use

  • Containerizing applications for deployment
  • Creating Dockerfiles for new services
  • Optimizing existing container images
  • Setting up development environments
  • Building CI/CD container pipelines
  • Implementing microservices

Quick Start

Minimal working example:

# Multi-stage build for Node.js application
# Stage 1: Build
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build

# Stage 2: Production
FROM node:18-alpine
WORKDIR /app
# Copy only production dependencies and built files
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY package*.json ./

# Security: Run as non-root user
RUN addgroup -g 1001 -S nodejs && adduser -S nodejs -u 1001
USER nodejs

EXPOSE 3000
CMD ["node", "dist/index.js"]

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents | |---|---| | Multi-Stage Builds | Multi-Stage Builds | | Optimization Techniques | Optimization Techniques | | Security Best Practices | Security Best Practices, Environment Configuration | | Docker Compose for Multi-Container | Docker Compose for Multi-Container | | .dockerignore File | .dockerignore File | | Python | Python (Django/Flask), Java (Spring Boot), Go |

Best Practices

✅ DO

  • Use official base images
  • Implement multi-stage builds
  • Run as non-root user
  • Use .dockerignore
  • Pin specific versions
  • Include health checks
  • Scan for vulnerabilities
  • Minimize layers
  • Use build caching effectively

❌ DON'T

  • Use 'latest' tag in production
  • Run as root user
  • Include secrets in images
  • Create unnecessary layers
  • Install unnecessary packages
  • Ignore security updates
  • Store data in containers

Related skills

Security

Skill Vetter

Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, p…

Security

Moltguard

MoltGuard — OpenClaw security guard by OpenGuardrails. Install MoltGuard to protect you and your human from prompt injection, data exfiltrat…

Security

Security Auditor

Use when reviewing code for security vulnerabilities, implementing authentication flows, auditing OWASP Top 10, configuring CORS/CSP headers…

Security

Skill Vetter

Security vetting protocol before installing any AI agent skill. Red flag detection for credential theft, obfuscated code, exfiltration. Risk…