← ClaudeAtlas

dockerfile-skilllisted

Generate production-ready Dockerfile for any GitHub project. Supports monorepo, multi-stage builds, workspace detection, and iterative build-fix cycles. Use when user asks to create, generate, write, fix, or improve a Dockerfile, wants to containerize an application, mentions Docker build issues, needs a .dockerignore, or wants to package their app as a Docker image. Also triggers on "/dockerfile".
labring/sealos-skills · ★ 61 · DevOps & Infrastructure · score 71
Install: claude install-skill labring/sealos-skills
# Dockerfile Generator Skill ## Overview This skill generates production-ready Dockerfiles through a 4-phase process: 1. **Deep Analysis** - Understand project structure, workspace, migrations, and build complexity 2. **Generate** - Create Dockerfile with migration handling and build optimization 3. **Build & Fix** - Validate through actual build, fix errors iteratively 4. **Runtime Validation** - Verify migrations ran, app works, database populated ## Key Capabilities - **Workspace/Monorepo Support**: pnpm workspace, Turborepo, npm workspaces - **Custom CLI Detection**: Auto-detect custom build CLIs (turbo, nx, lerna, rush, or project-specific) and use correct syntax - **Git Hash Bypass**: Detect and handle projects requiring git commit hash (GITHUB_SHA) - **Build-Time Env Vars**: Auto-detect and add placeholders for Next.js SSG - **Error Pattern Database**: 40+ known error patterns with automatic fixes - **Smart .dockerignore**: Avoid excluding workspace-required files and CLI config dependencies - **Custom Entry Points**: Support for custom server launchers - **Migration Detection**: Auto-detect ORM, migrations, handle standalone mode - **Build Optimization**: Skip heavy CI tasks (lint/type-check) to prevent OOM - **Runtime Validation**: Verify migrations ran, database populated, app working - **Native Module Support**: Auto-detect Rust/NAPI-RS modules, multi-architecture builds - **Static Asset Mapping**: Detect backend's expected static paths and map frontend outputs