docker
Docker best practices for containerization, dev containers, and Docker Compose. Load when writing Dockerfiles, docker-compose.yml, or mise Docker tasks. Triggers on: Dockerfile, docker-compose.yml, docker build, docker compose, devcontainer, COMPOSE_BAKE, GCP Artifact Registry, Cloud Run.
Works with
--- name: docker description: Docker best practices for containerization, dev containers, and Docker Compose. Load when writing Dockerfiles, docker-compose.yml, or mise Docker tasks. Triggers on: Dockerfile, docker-compose.yml, docker build, docker compose, devcontainer, COMPOSE_BAKE, GCP Artifact Registry, Cloud Run. license: MIT --- # docker Best practices for Docker and Docker Compose based on nv-gcp-template (mise-app-template) conventions. Covers multi-stage builds with mise, cross-platform Docker Compose (Mac / Linux / WSL2), dev containers, and GCP Artifact Registry. ## When to load recipes | You are working on... | Load recipe | |---|---| | Running mise inside Docker (base images, tool installation) | `references/recipes/mise-in-docker.md` | | Multi-stage builds (base + production image) | `references/recipes/multi-stage.md` | | Docker Compose service composition | `references/recipes/compose.md` | | Cross-platform compatibility (Mac / Linux / WSL2) | `references/recipes/cross-platform.md` | | Pushing to GCP Artifact Registry or deploying to Cloud Run | `references/recipes/gcp-registry.md` | ## Core Conventions - Always use `# syntax=docker/dockerfile:1` as the first line (enables BuildKit features) - Use `COMPOSE_BAKE=true docker compose build` for faster parallel builds - Base images use `ubuntu:22.04` with mise for tool installation; runtime images use minimal `node:lts-alpine` or `alpine` - Never run as root in production images — create a non-root user in the final stage - Use `--no-install-recommends` with `apt-get` and clean `rm -rf /var/lib/apt/lists/*` in the same layer
More DevOps & Infrastructure skills
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
appinsights-instrumentation
microsoft/azure-skills
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
azure-storage
microsoft/azure-skills
Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging).

