Agent skill

generate-dockerfile

Generate optimized multi-stage Dockerfile

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-dockerfile

SKILL.md

Generate Dockerfile

Generate an optimized multi-stage Dockerfile with security best practices.

What To Do

  1. Analyze project: Detect runtime (.NET, Node.js, Python)
  2. Generate multi-stage Dockerfile:
    • Build stage with SDK image
    • Publish stage with runtime image
    • Non-root user
    • Health check
    • .dockerignore
  3. Security: No secrets in image, minimal base image, non-root user

Arguments

  • --runtime=<dotnet|node|python>: Target runtime
  • --port=<n>: Exposed port (default: 5000)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results