Task prompt · Coding
Create a Dockerfile for my app
by Agent Yard TeamSmall, secure container image that builds fast.
Use cases
- Small, secure container image that builds fast.
- Reuse it as often as you like: fill in the blanks (language/framework) with new details and copy again.
- With Cursor, Claude Code, Codex and more, the AIs that support what this prompt needs.
Featured in: Best Claude Code prompts for building web apps.
How to use it
- Open Cursor or Claude Code in your terminal (or another AI listed here).
- Fill in the highlighted blank ([LANGUAGE/FRAMEWORK]) below, or edit them after pasting.
- Copy the prompt, paste it into the chat and send.
Fill in the blanks (optional)
Prompt
Write a Dockerfile for this [LANGUAGE/FRAMEWORK] app. Use a multi-stage build, a slim base image, a non-root user, layer caching for dependencies and a health check. Add a .dockerignore. Explain how to build and run it locally, and the image size you expect.
One email a week
The Weekly is presented byyour brandSponsored · openThe best new prompts and personas, nothing else.