Initial commit
This commit is contained in:
commit
b035ed1763
49 files changed
+3170
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user