docker

Enforce production-grade standards for Dockerfiles and Compose specifications.

3|Updated May 12, 2026
One-click install
npx skills add https://github.com/gao-hongnan/omniagents --skill docker-gao-hongnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/gao-hongnan/omniagents/tree/main/plugins/iac/skills/docker
Command: npx skills add https://github.com/gao-hongnan/omniagents --skill docker-gao-hongnan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates configuration drift and production instability by enforcing industry-standard best practices for Dockerfiles and Compose specifications, ensuring your containerized applications are secure, reproducible, and performant.

Core Features & Use Cases

  • Production Rulebook: Enforces non-negotiable standards like multi-stage builds, non-root users, and digest-pinned base images.
  • Canonical Build Patterns: Provides optimized, cache-efficient templates for Python/uv and Node/Vite applications.
  • Use Case: When you need to transition a local development Dockerfile to a production-ready state, this skill audits your build stages, cache mounts, and healthcheck configurations to ensure they meet enterprise-grade reliability.

Quick Start

Use the docker skill to review the current Dockerfile and compose.yaml files for production readiness and suggest improvements based on the established rulebook.

Frequently Asked Questions about docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a Dockerfile production-ready for containerized applications?

Make a Dockerfile production-ready by applying multi-stage build patterns, pinning base image digests, configuring non-root users, and setting explicit resource limits. This ensures secure, reproducible, and performant container deployments.

What are the best practices for hardening Docker Compose specifications?

Best practices for hardening Docker Compose specifications include enforcing explicit resource management, configuring healthchecks, and utilizing cache-efficient templates. This eliminates configuration drift and production instability.

When do I need digest-pinning for Docker base images?

You need digest-pinning for Docker base images when transitioning applications to a production-ready state. Pinning digests enforces reproducible container builds by preventing upstream image changes from causing configuration drift.

Can I use BuildKit cache mounts to optimize Python and Node Docker builds?

Yes, you can use BuildKit cache mounts to optimize Python/uv and Node/Vite Docker builds. The skill provides canonical, cache-efficient build patterns that leverage these mounts for faster and reproducible CI/CD pipelines.

Why does my local development Dockerfile cause production instability?

A local development Dockerfile causes production instability when it lacks non-root user enforcement, explicit resource management, and healthcheck configurations. Auditing these elements against an industry-standard rulebook resolves the configuration drift.