ChatGPTIntermediate
Dockerfile & CI/CD Pipeline Builder
Use Case: DevOps automation
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).
View Full Prompt