Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/madebyaris/poinf-of-salesnpx agentmods add rules/madebyaris/poinf-of-sales/docker-deploymentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/madebyaris/poinf-of-sales/docker-deployment)<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/docker-deployment"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/docker-deployment/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/docker-deployment"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/docker-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.07467 |
| Opus 5 | $0.00000 | $0.03734 |
| Sonnet 5 | $0.00000 | $0.01493 |
| Haiku 4.5 | $0.00000 | $0.00747 |
Grade C, and why
docker-deployment scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf /var/cache/apk/* Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
test: ["CMD", "curl", "-f", "http://localhost:8080/health"] How it starts
The opening of the file, as written. The whole thing — 1,151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🐳 Docker & Production Deployment Guide
Container Architecture
Service Overview
The POS system uses a multi-container architecture defined in docker-compose.yml:
- postgres - PostgreSQL database with persistent storage
- backend - Golang API server with database connectivity
- frontend - React application served via Nginx
Container Networking
All services communicate through the pos-network bridge network:
- Frontend → Backend: HTTP API calls
- Backend → Database: PostgreSQL connection
- External access via exposed ports
Development vs Production
Development Configuration
Use docker-compose.dev.yml for development:
docker-compose -f docker-compose.dev.yml up
Development Features:
- Volume mounts for live code reloading
- Development-specific environment variables
- Hot reloading for both frontend (Vite) and backend (Air)
- Debug logging enabled
Production Configuration
Use docker-compose.yml for production:
docker-compose up -d
Production Features:
- Optimized multi-stage builds
- Minimal runtime containers (Alpine-based)
- Health checks and restart policies
- Production-ready Nginx configuration
Dockerfile Patterns
Backend Dockerfile
Multi-stage build pattern in backend/Dockerfile:
# Build stage - full Go toolchain
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
# Production stage - minimal runtime
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]
Frontend Dockerfile
Node.js build with Nginx serving in frontend/Dockerfile:
# Build stage
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
# Production stage - Nginx
FROM nginx:alpine AS production
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 1,151 lines · 0 tokens per session scan C f3968b7cda37
docker-deployment is a cursor rule published in the GitHub repository madebyaris/poinf-of-sales (142 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,467 tokens. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
aws-ecs
Definitive guidelines for building, deploying, and operating applications on AWS ECS, emphasizing immutable containers, secure secrets management, and robust operational patterns.
kubernetes
Kubernetes and OpenShift workload generation rules — security defaults, resource limits, probes.
build-deployment
Build, CMake, and Docker deployment.
env-credentials
Handle missing environment variables or credentials by sourcing .env files.
kubernetes-helm
Kubernetes and Helm best practices including resource management, security, chart organization, and deployment patterns.
deployment
Rails Deployment with Kamal.