Skip to content
Back to skills

Docker Kprsnt2

ASecurity

Docker and containerization best practices including multi-stage builds, security, and Docker Compose.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
securitynodenodejsdockerdevopssecurityperformance

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill docker-kprsnt2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Kprsnt2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Kprsnt2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-docker-kprsnt2/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-docker-kprsnt2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker
description: Docker and containerization best practices including multi-stage builds, security, and Docker Compose.
globs: ["**/Dockerfile", "**/docker-compose.yml", "**/docker-compose.yaml", "**/.dockerignore"]
priority: 80
tags: ["devops"]
---

# Docker Best Practices

## Dockerfile
- Use specific base image tags (not :latest)
- Use multi-stage builds for smaller images
- Minimize layers (combine RUN commands)
- Copy package.json first for caching
- Run as non-root user
- Use .dockerignore

## Example Multi-stage Build
```dockerfile
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-alpine AS runner
WORKDIR /app
RUN addgroup -g 1001 nodejs
RUN adduser -S nodejs -u 1001
COPY --from=builder /app/dist ./dist
USER nodejs
CMD ["node", "dist/index.js"]
```

## Docker Compose
- Use version 3.8+
- Define healthchecks
- Use named volumes for persistence
- Configure restart policies
- Use environment files

## Security
- Scan images for vulnerabilities
- Don't run as root
- Use secrets for sensitive data
- Keep base images updated
- Use distroless/alpine images

## Performance
- Use BuildKit
- Leverage layer caching
- Use .dockerignore
- Minimize image size

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.