RuleMembers

docker Best Practices (rules mdc) (Cursor rules (mdc)) (323)

docker Best Practices (rules mdc) (Cursor rules (mdc)) (323) is a rule file for Cursor, from the Cursor rules (mdc) collection by sanjeed5. The full text is about 1,011 words in 10 sections, with 19 code blocks. A rule file tells the editor's AI how code in this stack should be written, so its suggestions follow the same conventions.

It is most useful for people working in DevOps and infrastructure who use Cursor.

What it covers

  • 1. Optimize for Multi-Stage Builds
  • 2. Choose Minimal, Trusted Base Images
  • 3. Leverage .dockerignore
  • 4. Optimize Layer Caching
  • 5. Run as a Non-Root User
  • 6. Distinguish ARG and ENV
  • 7. Implement Health Checks
  • 8. Log to stdout/stderr
  • 9. Use Docker Compose for Local Development
  • 10. Manage Secrets Securely with Docker Compose

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source: https://github.com/sanjeed5/awesome-cursor-rules-mdc/blob/main/rules-mdc/docker.mdc

Author: sanjeed5, Cursor rules (mdc). License: CC0-1.0.

Related entries