Initial commit

This commit is contained in:
Michael-A-Sloan committed 2026-07-28 18:03:09 -04:00
commit d9516fa359
50 files changed
+3211

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
---
description: Docker and DevOps — images, compose, and CI hygiene
globs: **/{Dockerfile,docker-compose*.{yml,yaml},.github/workflows/*.{yml,yaml}}
alwaysApply: false
---
# Docker & DevOps
- Use multi-stage builds. Final image should not contain build tools or source maps unless needed.
- Run containers as non-root users when possible.
- Pin base image versions (`node:22-alpine`, not `node:latest`).
- Never bake secrets into images. Inject via env vars or secret managers at runtime.
- `.dockerignore` should exclude `node_modules`, `.git`, tests, and local env files.
- Health checks: define `HEALTHCHECK` or orchestrator probes for services.
- CI: cache dependencies, run lint + test on every PR, fail fast on first error.
- One concern per workflow job. Parallelize independent jobs.