Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Python Flask with Gunicorn and Gevent

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [WORKER_CLASS]
  • [TIMEOUT]
  • [BIND_ADDRESS]
  • [FLASK_APP]
python-flask-gunicorn-gevent-docker.txt
DevOps Architect Prompt: Create an optimized Dockerfile for a Flask application using Gunicorn and the [WORKER_CLASS] worker class. Use a multi-stage build to compile any C-based dependencies. Configure the Gunicorn execution to respect [TIMEOUT] and [BIND_ADDRESS]. Ensure that [FLASK_APP] is correctly identified. Integrate a .dockerignore strategy within the prompt to ensure the build context is kept small, focusing on excluding __pycache__ and .git.

Example Output

"The output provides a production-ready Flask container setup capable of handling high-concurrency asynchronous requests."