docker-containerization

Docker & Containerization

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docker-containerization" with this command: npx skills add sraloff/gravityboots/sraloff-gravityboots-docker-containerization

Docker & Containerization

When to use this skill

  • Creating Dockerfile or docker-compose.yml .

  • Optimizing image size.

  • Debugging container networking.

  1. Dockerfile Best Practices
  • Multi-Stage: Use multi-stage builds to keep production images small (e.g., build in node:20 , run in node:20-alpine ).

  • Ordering: Place frequent changes (code copying) AFTER infrequent changes (npm install) to leverage layer caching.

  • User: Don't run as root. User USER node or create a non-root user.

  1. Docker Compose
  • Services: Define services clearly (app , db , redis ).

  • Volumes: Use named volumes for persistence (postgres_data:/var/lib/postgresql/data ).

  • Env: Use .env file for environment variables.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

caddy-modern-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

apache-lamp-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

mysql-lamp-legacy

No summary provided by upstream source.

Repository SourceNeeds Review
General

postgresql-query-opt

No summary provided by upstream source.

Repository SourceNeeds Review