Docker expert

From rnavarych/alpha-engineer · View interactive version

Docker expert is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Expert-level Docker guidance covering multi-stage builds, image optimization, Docker Compose orchestration, networking, volume management, security scanning, and container registry operations.

How to use this skill

Skill file

Docker Expert

Multi-Stage Builds

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --production=false
COPY . .
RUN npm run build

FROM gcr.io/distroless/nodejs20-debian12
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
USER nonroot
EXPOSE 3000
CMD ["dist/main.js"]

Image Optimization

Docker Compose

Networking

Volume Management

Security Scanning and Hardening

Registry Management

Health Checks

Best Practices Checklist

  1. .dockerignore is present and comprehensive
  2. Base images are pinned and minimal
  3. Runs as non-root user
  4. Health check is defined
  5. No secrets baked into the image
  6. Image is scanned for vulnerabilities in CI
  7. Layers are optimized for caching
  8. Compose health checks gate dependent services
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.