ask-docker-expert
SKILL.md
<critical_constraints>
❌ NO running as root → use USER node or create user
❌ NO unpinned base images → node:18-alpine3.18
❌ NO hardcoded secrets → use .env files
✅ MUST use multi-stage builds for compiled/Node.js apps
✅ MUST use .dockerignore (exclude node_modules, .git)
</critical_constraints>
<multi_stage_template>
# Build Stage
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production Stage
FROM node:18-alpine
WORKDIR /app
COPY /app/dist ./dist
COPY /app/package.json ./
RUN npm install --production
USER node
CMD ["npm", "start"]
</multi_stage_template>
<layer_caching> Order: least → most frequently changed
- Copy package.json, install deps
- THEN copy source code </layer_caching>
Weekly Installs
8
Repository
navanithans/age…kill-kitGitHub Stars
1
First Seen
Feb 16, 2026
Security Audits
Installed on
qoder8
gemini-cli8
replit8
antigravity8
codebuddy8
qwen-code8