← ClaudeAtlas

containerizing-applicationslisted

Containerizes applications with Docker, docker-compose, and Helm charts. Use when creating Dockerfiles, docker-compose configurations, or Helm charts for Kubernetes. Includes Docker Hardened Images (95% fewer CVEs), multi-stage builds, and 15+ battle-tested gotchas.
aiskillstore/marketplace · ★ 329 · DevOps & Infrastructure · score 79
Install: claude install-skill aiskillstore/marketplace
# Containerizing Applications ## Quick Start 1. Run impact analysis first (env vars, network topology, auth/CORS) 2. Generate Dockerfiles using patterns below 3. Create docker-compose.yml with proper networking 4. Package as Helm chart for Kubernetes ## Dockerfile Patterns ### FastAPI/Python (Multi-stage with uv) ```dockerfile # syntax=docker/dockerfile:1 FROM python:3.13-slim AS builder WORKDIR /app RUN pip install uv COPY pyproject.toml . RUN uv pip install --system --no-cache -r pyproject.toml FROM python:3.13-slim WORKDIR /app COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages COPY . . RUN useradd -u 1000 appuser && chown -R appuser /app USER appuser EXPOSE 8000 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] ``` ### Next.js (Standalone) ```dockerfile # syntax=docker/dockerfile:1 FROM node:20-alpine AS deps WORKDIR /app COPY package*.json ./ RUN npm ci FROM node:20-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . ARG NEXT_PUBLIC_API_URL ARG NEXT_PUBLIC_SSO_URL ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL ENV NEXT_PUBLIC_SSO_URL=$NEXT_PUBLIC_SSO_URL RUN npm run build FROM node:20-alpine AS runner WORKDIR /app ENV NODE_ENV=production RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001 COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static COPY --fr