docker

Generate and update Dockerfile, .dockerignore, and compose.yaml for containerized applications.

Updated Jun 18, 2025
One-click install
npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill docker-ekozmdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/ekozmdev/my-codex-cli-settings/tree/main/.agents/skills/docker
Command: npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill docker-ekozmdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and updating of Dockerfiles, .dockerignore files, and Compose configurations to streamline containerization and reduce manual errors.

Core Features & Use Cases

  • Generate Dockerfile and .dockerignore for new services and update existing ones.
  • Create or update a compose.yaml file (Docker Compose) with proper service definitions and port mappings.
  • Enforce best practices by avoiding hard-coded secrets and promoting env_file or environment references.
  • Update related configuration files in a cohesive, repeatable workflow.

Quick Start

Provide your project description (for example, a Node.js app) and specify port mappings; the skill will generate a Dockerfile and a canonical compose.yaml for your project.

Frequently Asked Questions about docker

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

FAQPage Schema
How do I automatically generate a Dockerfile and compose.yaml for my project?

To generate a Dockerfile and compose.yaml, provide your project description and specify port mappings. The skill automates Dockerfile, .dockerignore, and compose.yaml creation to streamline containerization and reduce manual errors.

What is the best way to update Docker configurations across multiple services?

The best way to update Docker configurations across multiple services is using an automated workflow that updates related configuration files cohesively. This ensures standardization and repeatability across your compose.yaml and Dockerfile setups.

How do I avoid hard-coded secrets when creating a Docker Compose setup?

To avoid hard-coded secrets in a Docker Compose setup, use env_file or environment references. The skill enforces safe practices by automatically promoting these references instead of embedding sensitive data directly in configurations.

Does Docker Compose generation work with existing .dockerignore files?

Yes, Docker Compose generation works with existing .dockerignore files. The skill can generate or update .dockerignore files alongside your Dockerfile and compose.yaml to maintain a complete and standardized containerization setup.

When do I need to standardize my Dockerfile and Compose file naming?

You need to standardize your Dockerfile and Compose file naming when managing multiple services. The skill enforces safe practices by naming the Compose file compose.yaml, ensuring consistency across your project setups.