🐳
DevOpsJavaScript

Docker Best Practices

by rohitg00

Docker Best Practices is a DevOps skill for Claude Code, published by rohitg00 in awesome-claude-code-toolkit.

2.5K stars898 forkson rohitg00/awesome-claude-code-toolkitAdded 2026/08/18+1% in starsRepository updated 2026/05/12
claudeclaude-codeclaudecodeclaudecode-hookspluginsskills
Install in seconds
Install Docker Best Practices
Copy Docker Best Practices into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rohitg00/awesome-claude-code-toolkit/tree/main/skills/docker-best-practices ~/.claude/skills/docker-best-practices

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rohitg00/awesome-claude-code-toolkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/docker-best-practices/SKILL.md in rohitg00/awesome-claude-code-toolkit
Installs to
~/.claude/skills/docker-best-practices
Collection
One of 25 skills cataloged from this repository
Category
DevOps798 skills

What Docker Best Practices does

Docker Best Practices provides patterns for multi-stage builds, Docker Compose, image optimization, and container security. Use it when writing Dockerfiles or compose files to keep images small, secure, and cache-efficient.

Docker Best Practices is cataloged under DevOps on DirSkills. Docker Best Practices comes from a repository tagged claude, claude-code, claudecode, claudecode-hooks and plugins.

Documentation

README

Docker Best Practices

Multi-Stage Build

FROM node:22-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --only=production

FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-alpine AS runtime
WORKDIR /app
RUN addgroup -g 1001 -S appgroup && adduser -S appuser -u 1001 -G appgroup
COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/package.json ./
USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://localhost:3000/healthz || exit 1
CMD ["node", "dist/server.js"]

Separate dependency installation from build steps. Final stage contains only runtime artifacts.

This is the opening of the README. Read the full README on GitHub.

Commands Docker Best Practices provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /app

Frequently asked about Docker Best Practices

  • What else does rohitg00 publish alongside Docker Best Practices?

    Docker Best Practices is one of 25 skills that DirSkills catalogs from rohitg00/awesome-claude-code-toolkit, the repository it ships in. Its siblings there include API Design Patterns, AWS Cloud Patterns and Accessibility. Each one is a separate skill with its own page in this directory, installs the same way Docker Best Practices does, and is maintained by rohitg00 in that same repository. The rest of the collection is listed on the rohitg00/awesome-claude-code-toolkit page.

  • How does Docker Best Practices compare to other DevOps skills?

    Docker Best Practices ranks #249 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Docker Best Practices against them. Open each page to compare what they document and how they install.

More from rohitg00/awesome-claude-code-toolkit

Docker Best Practices is one of 25 skills cataloged on DirSkills from rohitg00/awesome-claude-code-toolkit.

See all 25 skills
🌐
2w ago

API Design Patterns

API Design Patterns provides guidelines for designing REST APIs, including resource naming, HTTP methods, status codes, pagination, versioning, and OpenAPI spec generation. Use it when building or reviewing API endpoints to ensure consistency and best practices.
Quality
2.5K898
☁️
2w ago

AWS Cloud Patterns

AWS Cloud Patterns provides reusable patterns for building serverless applications with Lambda, DynamoDB, S3, and CDK/Terraform. Use it when designing infrastructure as code or implementing Lambda functions and DynamoDB single-table designs.
DevOps
2.5K898
2w ago

Accessibility

Accessibility provides web accessibility patterns for WCAG 2.2 compliance, including ARIA, keyboard navigation, screen readers, and testing.
Frontend
2.5K898
🧭
2w ago

AgentKit SEO

AgentKit SEO routes broad or ambiguous digital-presence work to the right specialized module while keeping context scoped. Use it when a request spans LinkedIn, GitHub, CV/ATS, portfolio, or X/Twitter surfaces, or when the correct platform skill is unclear.
SEO
2.5K898
🔐
2w ago

Authentication Patterns

Authentication Patterns provides reusable patterns for JWT access/refresh tokens, OAuth2 PKCE, and RBAC authorization. Use it when building or reviewing authentication and authorization flows to avoid common security anti-patterns.
DevOps
2.5K898
🚀
2w ago

CI/CD Pipelines

CI/CD Pipelines provides reusable CI/CD pipeline configurations for GitHub Actions and GitLab CI, covering testing strategies and deployment automation. Use it when setting up or refining build, test, and deploy workflows.
DevOps
2.5K898