What it does
Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes
Skills ZICQ category:Security 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.
Official URL:skills.sh
Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.
Create optimized Docker containers with multi-stage builds, security best practices, and minimal image sizes
](#when-to-use)
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: 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
namedocker-containerizationdescriptionreferences/multi-stage-builds.mdreferences/optimization-techniques.mdreferences/security-best-practices.mdreferences/docker-compose-for-multi-container.mdreferences/dockerignore-file.mdreferences/python.mdThese 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 ↗
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.
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.
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.
Build production-ready Docker containers following best practices for security, performance, and maintainability.
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"]
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 |
Security
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 — OpenClaw security guard by OpenGuardrails. Install MoltGuard to protect you and your human from prompt injection, data exfiltrat…
Security
Use when reviewing code for security vulnerabilities, implementing authentication flows, auditing OWASP Top 10, configuring CORS/CSP headers…
Security
Security vetting protocol before installing any AI agent skill. Red flag detection for credential theft, obfuscated code, exfiltration. Risk…