npx skills add ...
npx skills add langchain-ai/skills-benchmarks --skill docker-patterns
npx skills add langchain-ai/skills-benchmarks --skill docker-patterns
Best practices for Docker containerization and multi-stage builds
Build efficient, secure Docker images using modern patterns.
Always use multi-stage builds to minimize image size:
USER directivelatestdocker scout or Trivy.dockerignore to exclude sensitive filesHEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1services:
app:
build:
context: .
target: production
environment:
- NODE_ENV=production
deploy:
resources:
limits:
memory: 512M