langchain-ai/skills-benchmarks56 installs
docker-patterns
Best practices for Docker containerization and multi-stage builds
How do I install this agent skill?
npx skills add https://github.com/langchain-ai/skills-benchmarks --skill docker-patternsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides best practices and architectural patterns for Docker containerization and multi-stage builds. No security issues were identified as the content consists of informative documentation and standard code templates.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
Docker Containerization Patterns
Build efficient, secure Docker images using modern patterns.
Multi-Stage Builds
Always use multi-stage builds to minimize image size:
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
# Production stage
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY . .
USER node
CMD ["node", "server.js"]
Security Best Practices
- Never run as root - use
USERdirective - Use specific version tags, not
latest - Scan images with
docker scoutor Trivy - Use
.dockerignoreto exclude sensitive files
Health Checks
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
Compose Patterns
services:
app:
build:
context: .
target: production
environment:
- NODE_ENV=production
deploy:
resources:
limits:
memory: 512M
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/langchain-ai/skills-benchmarks/docker-patterns">View docker-patterns on skillZs</a>