home/coding/create-dockerfile-prompt

Create Dockerfile.prompt

GPTClaudeDeepSeek··1,176 copies·updated 2026-07-14
create-dockerfile-prompt.prompt
# Create Dockerfile

Generate multi-stage, optimized Dockerfiles following best practices.

## Principles

1. Use multi-stage builds to reduce image size
2. Leverage build cache effectively
3. Run as non-root user
4. Minimize layers
5. Use specific base image versions

## Template

when to use it

Community prompt sourced from the open-source GitHub repo AmadeusITGroup/ai-primitives-hub (Apache-2.0). A "Create Dockerfile.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

AmadeusITGroup/ai-primitives-hub · Apache-2.0