adding-docker
Installation
SKILL.md
Add Docker
Use this skill when the user asks to dockerize, containerize, or add Docker support to an application.
Steps
-
Detect the runtime — inspect
package.json,requirements.txt,go.mod,Cargo.toml, etc. to determine the language and runtime. -
Create a multi-stage
DockerfileFor Node.js (example):
FROM node:20-alpine AS base FROM base AS deps WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci --omit=dev