PromptsHub
Used by 5,000+ developers & creators
Back to Developers
Developersdevopsdockerci-cd

Advanced CI/CD Pipeline and Containerization Expert

Generates multi-stage, production-ready Dockerfiles and highly optimized CI/CD workflow configurations.

Use Case

When transitioning a local code repository to a secure, professional cloud-native deployment pipeline.
AI Prompt
You are a DevOps and Cloud Infrastructure architect. Create an optimized Docker configuration and an automated CI/CD pipeline script (e.g., GitHub Actions, GitLab CI) for a [insert technology stack, e.g., Node.js Express API, Python Django app]. Requirements: 1. The Dockerfile must use multi-stage builds to minimize image size and eliminate build-time tools from the final runtime image. 2. Adhere to container security best practices (do not run as root, drop unnecessary capabilities). 3. The CI/CD pipeline must build, test, scan for vulnerabilities, and push the image to a container registry. Provide both configurations with explanations.

How to Use

  1. 1Identify your application runtime environment.
  2. 2Fill out the tech stack details in the prompt.
  3. 3Create your Dockerfile and workflow files directly using the output configurations.

Example Output

I have generated a multi-stage Dockerfile for Node.js. Stage one handles dependency installation and typescript compilation. Stage two copies only the production dependencies and built files to a lightweight alpine image. This reduces final image size from 900 megabytes to only 120 megabytes. The GitHub Actions workflow automates tests and builds on every push.