NestJS Deployment
Installation
SKILL.md
Deployment & Ops Standards
Priority: P1 (OPERATIONAL)
Docker optimization and production deployment standards for NestJS applications.
Docker Optimization
- Multi-Stage Builds: Mandatory.
- Build Stage: Install
devDependencies, build NestJS (nest build). - Run Stage: Copy only
distandnode_modules(pruned), usenode:alpine.
- Build Stage: Install
- Security: Do not run as
root.- Dockerfile:
USER node.
- Dockerfile: