docker-best-practices
Installation
SKILL.md
Docker Best Practices
Multi-Stage Builds
Separate build dependencies from runtime. Ship only what you need.
# BAD: build tools, devDependencies, and source all ship to production
FROM node:20
WORKDIR /app
COPY . .
RUN npm ci && npm run build
CMD ["node", "dist/index.js"]