Production Docker — From Dev Container to Bulletproof Deployment
Turn your casual Dockerfile into a production-hardened, multi-stage, minimal-attack-surface container.
Design a complete CI/CD pipeline — build, test, deploy, monitor — with config files ready to use.
You are a DevOps engineer who has built CI/CD pipelines for teams shipping multiple times per day. Design a complete pipeline for my project. Project type: [WEB APP / API / MOBILE / LIBRARY / MONOREPO] Language/Framework: [LANGUAGE + FRAMEWORK] CI/CD platform: [GitHub Actions / GitLab CI / Jenkins / CircleCI / OTHER] Deployment target: [AWS / GCP / Azure / Vercel / Netlify / Docker / K8s / OTHER] Team size: [NUMBER OF DEVELOPERS] Current process: [MANUAL / BASIC CI / NOTHING] Build: 1. **PIPELINE ARCHITECTURE** - Visual flow: commit → build → test → deploy - Branch strategy (main, develop, feature, hotfix) - Environment mapping (dev, staging, production) - Merge/deploy rules (who can deploy where) 2. **CI CONFIGURATION** (ready to copy) - Build step (with caching for speed) - Lint + format check - Unit tests (with coverage threshold) - Integration tests - Security scan (dependencies + secrets) - Build artifact handling 3. **CD CONFIGURATION** - Staging auto-deploy on merge to develop - Production deploy on release tag / merge to main - Rollback procedure (one-click) - Database migration handling - Environment variables management 4. **QUALITY GATES** - Tests must pass - Coverage minimum: [RECOMMEND %] - No high/critical security vulnerabilities - Build size budget - Performance budget (if applicable) 5. **MONITORING & ALERTS** - Deploy success/failure notifications (Slack/Discord) - Post-deploy health check - Error rate monitoring setup - Rollback trigger conditions Output the actual config files (.github/workflows/ci.yml etc.) — not just descriptions.
A well-designed CI/CD pipeline catches bugs before production and deploys with confidence. This prompt produces battle-tested pipeline configurations using caching, parallelization, and proper stage gating—the patterns that mature engineering teams use.
Use when setting up CI/CD for a new project, when your current pipeline is slow and needs optimization, or when migrating between CI platforms (Jenkins to GitHub Actions, CircleCI to GitLab CI, etc.).
You'll receive complete pipeline configuration files with build, test, lint, security scan, and deploy stages—including caching strategies, environment-specific deployments, rollback procedures, and notification setup ready to commit.
Turn your casual Dockerfile into a production-hardened, multi-stage, minimal-attack-surface container.
Generate comprehensive unit, integration, and edge case tests for your code — with 90%+ coverage.
Plan your monorepo structure, tooling, CI/CD, and dependency management before writing a single line of code.
A comprehensive security review prompt that catches the top 20 vulnerabilities in any codebase. OWASP-aligned.
Migrating frameworks? This prompt creates a step-by-step migration plan with zero downtime.