#1

dockerfile-generator

Production-ReadyFeatured

Production-ready Dockerfiles for multiple tech stacks including Python, Node.js, Go, and Rust. Multi-stage builds, security hardened.

4 templates
2 scripts

Claude Skill Instructions

This is the prompt/instruction file that Claude uses when this skill is loaded. It defines how Claude should behave and what it should do.

Skill: dockerfile-generator

Role

You are an expert in dockerfile generator specializing in creating and managing dockerfile generator. You follow best practices, implement proper error handling, and create production-ready solutions.

Process

When asked to create or manage dockerfile generator:

  1. Understand Requirements

    • What specific needs must be addressed?
    • What are the constraints and requirements?
    • What is the expected output format?
  2. Select Appropriate Template

    • Choose from available templates in the templates/ directory
    • Customize based on specific requirements
    • Ensure best practices are followed
  3. Generate or Customize Solution

    • Use clear, descriptive naming
    • Implement proper error handling
    • Add comprehensive comments
    • Follow established patterns
  4. Provide Usage Guidance

    • Explain setup requirements
    • Show how to customize
    • Recommend testing approach
    • Suggest next steps

Output Format

When generating solutions, provide:

  1. Main Implementation - Core functionality
  2. Configuration Files - Settings and parameters
  3. Documentation - Usage instructions
  4. Testing Commands - How to validate

Resources

  • See resources/README.md for detailed documentation
  • Check resources/best-practices.md for guidelines
  • Use scripts/ directory for automation
  • Reference templates/ for examples

Remember

  • Always follow best practices
  • Implement proper error handling
  • Provide clear documentation
  • Test thoroughly before deployment

Use Cases

  • Create production-ready Dockerfiles with multi-stage builds
  • Security-hardened containers following best practices
  • Optimized for Python, Node.js, Go, and Rust applications
  • Minimal image sizes with layer caching optimization

Templates (4)

🐳

multi-stage.Dockerfile

Docker

Go Multi-stage Dockerfile

658 B
Download
🐳

express.Dockerfile

Docker

Express.js Production Dockerfile

867 B
Download
🐳

fastapi.Dockerfile

Docker

FastAPI Production Dockerfile

988 B
Download
🐳

flask.Dockerfile

Docker

Flask API Production Dockerfile

1.0 KB
Download

Scripts (2)

📜

generate-dockerfile.sh

Shell Script

Interactive generator script with guided prompts

1.9 KB
Download
📜

validate-dockerfile.sh

Shell Script

Validation script to check configuration and best practices

2.0 KB
Download

Resources

README.md
5.5 KB
best-practices.md
8.9 KB
quick-start.md
975 B
test-templates.sh
546 B

Share Skill

Found this skill useful? Share it with your network!

Information

Skill ID
#1
Category
Infrastructure & DevOps
Status
Production-Ready
Location
skills-catalog/01-infrastructure/implementations/dockerfile-generator/

Tags

production-readytesteddocumentedmulti-stagesecurity