Skip to content
All Skills

Dockerfile Generator

Generates optimized multi-stage Dockerfiles for any project. Prerequisites: docker.

DevOps|v1|Updated 5/18/2026
MCP get_skill({ skillId: "dockerfile-generator-128c2af6" })

Use this skill with your agent

Create a free account and connect via MCP

Get Started Free
# Dockerfile Generator

## Description
Generate an optimized multi-stage Dockerfile for the given project.

## Steps
1. Detect the project type (language, framework, package manager)
2. Choose appropriate base images (slim/alpine when possible)
3. Implement multi-stage build to minimize final image size
4. Set up proper layer caching (dependencies before source code)
5. Configure non-root user for security
6. Add health check if applicable

## Best Practices
- Pin base image versions
- Use .dockerignore
- Minimize layers
- Don't copy unnecessary files
- Set WORKDIR
- Use COPY over ADD
#docker#containerization#deploymentdocker

Explore Other Categories

Skills from other categories with shared topics

Aspire

Aspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, templates, dashboard, and deployment. Use when the user asks to create, run, debug, configure, deploy, or troubleshoot an Aspire distributed application.

DevOps & Cloud#github-copilot#docker

Azure Kubernetes

Plan, create, and configure production-ready Azure Kubernetes Service (AKS) clusters. Covers Day-0 checklist, SKU selection (Automatic vs Standard), networking options (private API server, Azure CNI Overlay, egress configuration), security, and operations (autoscaling, upgrade strategy, cost analysis). WHEN: create AKS environment, provision AKS, enable AKS observability, design AKS networking, choose AKS SKU, secure AKS, optimize AKS, AKS spot nodes, AKS cluster-autoscaler, rightsize AKS pod, pod rightsizing, over-provisioned AKS pod, pod resource requests and limits, Vertical Pod Autoscaler, VPA recommendations.

DevOps & Cloud#broad-capability#development

Container Security

Container image security scanning, Dockerfile hardening, and ACR image management. Use when scanning container images for vulnerabilities with Trivy, hardening Dockerfiles (pinning versions, non-root runtime, SSH config), importing images to Azure Container Registry to avoid Docker Hub rate limits, or analyzing CVE findings. Also trigger when the user mentions image security, vulnerability scanning, CVE remediation, container hardening, Trivy scan, Docker security, or ACR image import — even if they don't explicitly say "container security".

DevOps & Cloud#broad-capability#devops