AcademyRulesDevelopment

Docker Rules

Development and operations teams that want consistent, secure Dockerfiles and compose files.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/docker.mdc -o .cursor/rules/docker.mdc
docker.mdc

Loading the file...

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

  1. 01Write a Dockerfile with pinned versions
  2. 02Run services as a non-root user
  3. 03Keep secrets out of images and build args

Questions about
Docker Rules.

What is Docker Rules used for?

Development and operations teams that want consistent, secure Dockerfiles and compose files. 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.

How do I install Docker Rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/docker.mdc -o .cursor/rules/docker.mdc

Is Docker Rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Docker Rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.