docker-patterns SKILL.md skillA

docker-patterns from pekral/cursor-rules is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add pekral/cursor-rules/docker-patterns@git:20260614.00034c8

Pins git:20260614.00034c8 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
pekral/cursor-rules
Path
skills/docker-patterns/SKILL.md
Versions recorded
1
Latest version
git:20260614.00034c8, committed Jun 14, 2026
Size
8,278 bytes
Repository stars
12
License
MIT

Use when writing or reviewing Docker and docker-compose setups for a Laravel application — multi-stage PHP-FPM images, services (nginx, MySQL, Redis, queue worker, scheduler, Vite build), healthchecks, secrets, and image hardening.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Docker Patterns

## Constraints
- Apply `@rules/security/backend.md` — never bake secrets into image layers, inject them at runtime; apply least privilege (non-root user, dropped capabilities, least-privileged DB user).
- Apply `@rules/laravel/laravel.mdc` — respect Laravel's directory layout, artisan commands, and config caching.
- Pin every base image to a specific tag (never `:latest`) for reproducible builds.
- One process per container: PHP-FPM, queue worker, and scheduler are separate containers sharing the same image.
- `.env` and secrets stay out of images and out of git.

## Use when
- Writing or reviewing a `Dockerfile` / `docker-compose.yml` for a Laravel app.
- Setting up local dev (nginx + PHP-FPM + MySQL + Redis) or a build pipeline for a production image.
- Reviewing image size, layer caching, healthchecks, or secret handling.

## Multi-Stage Dockerfile (PHP-FPM)

Separate Composer deps, the Vite/asset build, and the lean runtime so each layer caches independently and dev tooling never ships to production.

```dockerfile
# syntax=docker/dockerfile:1

# --- Stage: composer deps (cached unless composer.* change) ---
FROM composer:2 AS vendor
WORKDIR /app
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ve4asingtroafm6y/7fb50234affedb1112c637407a6a726a4bc84b27227a0573c5efc6014d02fe4d.json

Then /plugin install docker-patterns@markdownregistry-ve4asingtroafm6y in Claude Code. It installs git:20260614.00034c8, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add pekral/cursor-rules/docker-patterns@sha256:7fb50234affedb11

The line at the top of this page pins the label git:20260614.00034c8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ve4asingtroafm6y.svg)](https://markdownregistry.com/a/art_ve4asingtroafm6y)

2 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in pekral/cursor-rules/docker-patterns since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of docker-patterns from somewhere else? Ask it: where did my docker-patterns come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 1 version of this file, committed on Jun 14, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260614.00034c8 latest2026-06-14 00034c8 8,278 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8278 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

pekral/cursor-rules · 12 stars · license MIT · pushed 2026-10-03 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_ve4asingtroafm6y
GET https://markdownregistry.com/api/v1/resolve?ref=pekral/cursor-rules/docker-patterns
GET https://markdownregistry.com/api/v1/blob/7fb50234affedb1112c637407a6a726a4bc84b27227a0573c5efc6014d02fe4d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from pekral/cursor-rules

CLAUDE.md CLAUDE.md file
pekral/cursor-rules · CLAUDE.md
git:20260809.a06a16f · audit A · 12 stars
analyze-problem SKILL.md skill
pekral/cursor-rules · skills/analyze-problem/SKILL.md · Use when structured problem analysis for debugging, root cause
git:20260825.343ade7 · audit A · 12 stars
api-review SKILL.md skill
pekral/cursor-rules · skills/api-review/SKILL.md · Use when reviewing HTTP API design in a PR or change set — endpoints, routes, HTTP methods, status codes, idempotency…
git:20260716.7828b68 · audit A · 12 stars
article-writing SKILL.md skill
pekral/cursor-rules · skills/article-writing/SKILL.md · Use when writing articles, guides, blog posts, tutorials, newsletter issues, or other long-form content longer than a…
git:20260614.7dae13a · audit A · 12 stars
assignment-compliance-check SKILL.md skill
pekral/cursor-rules · skills/assignment-compliance-check/SKILL.md · Use when checking that the pull request implementation actually fulfills the business requirements stated in the linked…
git:20260716.7828b68 · audit A · 12 stars
automation-audit-ops SKILL.md skill
pekral/cursor-rules · skills/automation-audit-ops/SKILL.md · Use when you need an evidence-first, read-only inventory of every automation in this repo (GitHub Actions, Claude Code…
git:20260615.cc39a4d · audit A · 12 stars
autonomous-loops SKILL.md skill
pekral/cursor-rules · skills/autonomous-loops/SKILL.md · Use when choosing how to run Claude Code autonomously on this project — from a single sequential pipeline to…
git:20261003.14c8a0b · audit A · 12 stars
benchmark-optimization-loop SKILL.md skill
pekral/cursor-rules · skills/benchmark-optimization-loop/SKILL.md · Use when a goal is vague speed ("make it faster", "reduce p95", "cut query time") and you need a bounded, measured loop…
git:20260615.62f6e3e · audit A · 12 stars
benchmark SKILL.md skill
pekral/cursor-rules · skills/benchmark/SKILL.md · Use when measuring performance baselines or detecting regressions before and after a change in a Laravel app — page…
git:20260615.d3ee2d6 · audit A · 12 stars
blueprint SKILL.md skill
pekral/cursor-rules · skills/blueprint/SKILL.md · Use when a single objective is too large for one pull request and must span multiple sessions or PRs. Turns the…
git:20260716.78e7355 · audit A · 12 stars
class-refactoring SKILL.md skill
pekral/cursor-rules · skills/class-refactoring/SKILL.md · Use when refactor PHP classes to improve structure, readability,
git:20260825.68f0a25 · audit A · 12 stars
cleanup-local-branches SKILL.md skill
pekral/cursor-rules · skills/cleanup-local-branches/SKILL.md · Use when cleaning up local Git branches after origin pruning. Deletes local branches whose upstream was deleted on…
git:20260613.ac1fa4e · audit A · 12 stars

Every file in pekral/cursor-rules

Other files named docker-patterns

docker-patterns SKILL.md skill
affaan-m/ecc · docs/es/skills/docker-patterns/SKILL.md · Patrones de Docker y Docker Compose para desarrollo local, seguridad de contenedores, networking, estrategias de…
git:20260607.ac0f11c · audit A · 305,967 stars
docker-patterns SKILL.md skill
affaan-m/ecc · .kiro/skills/docker-patterns/SKILL.md · Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and…
git:20260320.ce828c1 · audit A · 305,967 stars
docker-patterns SKILL.md skill
hashgraph-online/awesome-codex-plugins · plugins/Colin4k1024/tsp/skills/docker-patterns/SKILL.md · Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and…
git:20260512.6523792 · audit A · 1,584 stars
docker-patterns SKILL.md skill
sabahattink/antigravity-fullstack-hq · skills/docker-patterns/SKILL.md · Dockerfile best practices, multi-stage builds, docker-compose for dev/prod. Use when setting up containerization for a…
git:20260515.d5c1870 · audit A · 32 stars
docker-patterns SKILL.md skill
skateddu/claude-code-python-setup · .claude/skills/docker-patterns/SKILL.md · Docker and Docker Compose patterns for local development, container security, networking, volumes, and multi-service…
git:20261015.4096849 · audit A · 29 stars

Browse by kind, by grade A, or by owner.