Skip to content
Agentmart
Submit a tool

docker-containerization

Complete Docker and containerization patterns for microservices including multi-stage builds, optimization, and orchestration.

Skill by yasinnerten

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yasinnerten-docker-containerization

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Complete Docker and containerization patterns for microservices including multi-stage builds, optimization, and orchestration.

Use cases: devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/docker-containerization

What's inside

Skill name
docker-containerization
Description
Complete Docker and containerization patterns for microservices including multi-stage builds, optimization, and orchestration.
License
Apache-2.0
Metadata
category: devops
Instructions
590 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Agent Skills spec issues

  • body: 590 lines (spec recommends under 500)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Docker Containerization

This skill provides comprehensive guidance for containerizing applications, optimizing images, and managing container orchestration.

## Multi-Stage Builds

### 1. Python Multi-Stage
```dockerfile
# Build stage
FROM python:3.11-slim as builder

WORKDIR /app
COPY requirements.txt .
RUN pip install --user --no-cache-dir /tmp/pip -r requirements.txt

# Runtime stage
FROM python:3.11-slim

WORKDIR /app
COPY --from=builder /root/.local /root/.local
COPY . .

EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
```

### 2. Go Multi-Stage
```dockerfile
# Build stage
FROM golang:1.21-alpine AS builder

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/server

# Runtime stage
FROM alpine:latest

RUN apk --no-cache add ca-certificates tzdata

WORKDIR /root/
COPY --from=builder /app/server .
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

EXPOSE 8080
CMD ["./server"]
```

### 3. Node.js Multi-Stage
```dockerfile
# Build stage
FROM node:20-alpine AS builder

WORKDIR /app
COPY package*.json ./
RUN npm ci

COPY . .
RUN npm run build

# Runtime stage
FROM node:20-alpine

WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules

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

## Image Optimization

### 1. Alpine Linux Base
```dockerfile
FROM python:3.11-alpine AS base

# Install only runtime dependencies
RUN apk add --no-cache \
    python3 \
    py3-pip \
    postgresql-client \
    ca-certificates

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir /tmp/pip -r requirements.txt

# Clean up
RUN apk del py3-pip && rm -rf /root/.cache
```

### 2. Layer Caching
```dockerfile
FROM node:20-alpine

WORKDIR /app

# Install dependencies separately (cached)
COPY package*.json ./
RUN npm ci --only=production

# Copy source code (frequent changes)
COPY . .
RUN npm run build

# Copy node_modules from previous stage
COPY --from=builder /app/node_modules ./node_modules
```

### 3. .dockerignore
```
# .dockerignore
.git
.gitignore
.env

From yasinnerten/temporal-openai-agents-sdk, Apache-2.0.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Feb 27, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from yasinnerten

Cite this page

docker-containerization skill. Agent Mart. https://agentmart.dev/skills/yasinnerten-docker-containerization (last updated 2026-10-24)