docker-init

Generate Dockerfile, docker-compose.yaml, .dockerignore, and .env.example for projects.

35|11|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/mwguerra/claude-code-plugins --skill docker-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-init
Source: https://github.com/mwguerra/claude-code-plugins/tree/main/docker-specialist/skills/docker-init
Command: npx skills add https://github.com/mwguerra/claude-code-plugins --skill docker-init

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the initial setup of a Docker-based project by generating a ready-to-run Dockerfile, a complete docker-compose configuration, and a .dockerignore, helping you start faster with predictable environments.

Core Features & Use Cases

  • Dockerfile scaffolding: Generates a multi-stage Dockerfile tailored to common app types.
  • Compose setup: Creates a docker-compose.yaml with essential services and health checks.
  • Output scaffolding: Includes .dockerignore and .env.example to simplify environment management.

Quick Start

Start a new project with Docker by generating the Docker setup for your app; then run docker compose up to boot services.

Frequently Asked Questions about docker-init

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

FAQPage Schema
How do I generate a Dockerfile and docker-compose setup for my project?

This Skill automates Dockerfile and docker-compose.yaml generation tailored to your project type—Node.js, Python, PHP, Laravel, Go, and others—creating multi-stage builds, non-root users, health checks, and environment scaffolding in one step.

Can I use this to add Docker support to an existing project?

Yes, this Skill applies to new projects, migrations, and adding Docker support to existing codebases. It generates Dockerfile, docker-compose.yaml, .dockerignore, and .env.example without modifying your source code.

What does a multi-stage Dockerfile do and why is it important?

Multi-stage Dockerfiles build your application in separate layers—compilation or dependency installation in one stage, runtime in another—reducing final image size and improving security by excluding build tools from production containers.

Do I need to write docker-compose.yaml manually or can it be generated?

This Skill generates a complete docker-compose.yaml with essential services and health checks configured for your project type, eliminating manual configuration and reducing setup time.

What's included in the .dockerignore and .env.example files?

.dockerignore excludes unnecessary files from the Docker build context to reduce image size; .env.example provides a template for environment variables your application needs, simplifying configuration management.

Does this Skill support non-root user setup for security?

Yes, the generated Dockerfile includes non-root user configuration as a security best practice, preventing containers from running with root privileges and limiting exposure if a container is compromised.