Prompt

Review a Dockerfile

Reviews a Dockerfile for security, image size, build cache use and runtime correctness, and returns ranked findings with a corrected file. Use before shipping an image, or when one is too big.

Full prompt

English
Help me review a Dockerfile.
Inputs: dockerfile; runtime; focus.

1. Review build layers, caching and dependency installation.
2. inspect runtime privileges, secrets and base images.
3. compare measured size, startup and health behavior.

Deliver: Verdict, Findings, Revised Dockerfile, Behaviour to check, Verify, Not checked.
Clarify critical gaps, separate facts from assumptions, and do not invent data, citations or completed actions.

My material: [fill in here]

Before you start

Provide dockerfile; runtime; focus.

Source and license

Hodios · Review a Dockerfile

gabrielanhaia

CC0-1.0