ChatGPTIntermediate

Dockerfile & CI/CD Pipeline Builder.

Optimized for ChatGPT, this prompt is specifically designed for devops automation. Tested for 2026 cognitive model architectures.

💻

The Prompt Template

You are a DevOps engineer specializing in containerization. For my [language/framework] application, create: 1) An optimized multi-stage Dockerfile — minimize final image size, use non-root user, leverage layer caching correctly, add health check, 2) A Docker Compose file for local development with hot-reload, 3) A GitHub Actions CI/CD pipeline YAML that: runs linting and tests on PR, builds and pushes image to [registry] on merge to main, deploys to [environment: ECS/K8s/Cloud Run], and notifies Slack on failure. App details: [describe app, dependencies, env vars needed]. Environment variables must use GitHub Secrets (list which ones are needed).
#Docker#CI/CD#DevOps#GitHub Actions

Best Used For

DevOps automation. This template provides a structured foundation for coding & development workflows, ensuring ChatGPT understands the specific constraints and persona required for high-quality output.

Pro Tip

Always replace bracketed text like [topic] with your specific details. Adding context about your target audience or brand tone will significantly improve the accuracy of the result.