Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Docker

Advanced AI Prompt for Python Poetry Multi-Stage Optimization

Customize the variables below to instantly engineer your prompt.

Required Variables

python-poetry-multi-stage-optimization.txt
You are a Cloud Architect. Design a multi-stage Python Dockerfile using [PYTHON_VERSION] and Poetry. Stage 1 must configure Poetry to not create a virtual environment or use a specific [VIRTUAL_ENV_DIR], install only production dependencies from [PYPROJECT_PATH], and use a build-base for C-extensions. Stage 2 must copy only the installed site-packages or virtual env to a slim-buster image. Implement high-performance settings: bytecode suppression (.pyc), buffer disabling, and a dedicated worker user. Expose [APP_PORT] and define a robust CMD.

Example Text Output

"The output will be a streamlined Python Dockerfile that avoids installing Poetry in the final image, significantly decreasing the attack surface and boot time."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Python Poetry Multi-Stage Optimization" prompt used for?

The output will be a streamlined Python Dockerfile that avoids installing Poetry in the final image, significantly decreasing the attack surface and boot time.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.