ask-docker-expert
2
总安装量
2
周安装量
#75592
全站排名
安装命令
npx skills add https://github.com/navanithans/agent-skill-kit --skill ask-docker-expert
Agent 安装分布
qoder
2
gemini-cli
2
replit
2
antigravity
2
codebuddy
2
qwen-code
2
Skill 文档
<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>