Text & chat prompt

Review and improve a Dockerfile

Review and improve a Dockerfile: a free, copy-paste prompt for ChatGPT, Gemini and Claude. Paste the prompt and replace each [BRACKETED] field with your own details.

The prompt

Review this Dockerfile:

[PASTE DOCKERFILE]

The app: [APP TYPE AND LANGUAGE]

Check for security issues, image size, build caching, unnecessary layers, running as root and missing health checks. Provide an improved version with comments explaining every change and any behaviour I should test.

Pro tip: Ask for the image size before and after to see how much the changes really save.

How to use this prompt

  1. Open ChatGPT and start a new chat.
  2. Paste the prompt.
  3. Replace each [BRACKETED] field with your real details and paste in your own text where asked.
  4. Reply with follow-ups such as "make it shorter" or "make it sound more like me".

Prompt at a glance

Category
Text & chat
Works with
ChatGPT · Gemini · Claude
Length
43 words
Fields to fill in
PASTE DOCKERFILE, APP TYPE AND LANGUAGE
Last updated

Frequently asked questions

Which AI tools work with this prompt?

It is written for ChatGPT, Gemini and Claude. Paste it into your preferred tool and adjust the wording if the result is off.

What do I need to fill in?

Replace these fields before you send it: PASTE DOCKERFILE, APP TYPE AND LANGUAGE. Each field shows an example in the prompt.

Should I paste private information into the prompt?

Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.

More chat & writing prompts

See all 373 chat & writing prompts →