What it does
A Cursor rules file that guides the AI editor to produce minimal, secure and reproducible Docker images. It covers pinned image versions, multi-stage builds, non-root users, health checks, .dockerignore, secrets handling and logging to stdout.
Use cases
- 01Write a Dockerfile with pinned versions
- 02Run services as a non-root user
- 03Keep secrets out of images and build args