dockerfile-gen

v2026.09.24

Generate optimized Dockerfiles for any project

GitHub
Install command
npx skhub add sundial-org/dockerfile-gen
Markdown
SKILL.md

Dockerfile Generator

Scan your project, get a production-ready Dockerfile. Multi-stage builds, proper caching, security best practices.

Quick Start

npx ai-dockerfile

What It Does

  • Detects your stack (Node, Python, Go, etc.)
  • Generates multi-stage builds
  • Optimizes layer caching
  • Adds security hardening
  • Includes .dockerignore

Usage Examples

# Generate for current project
npx ai-dockerfile

# Specify base image
npx ai-dockerfile --base node:20-alpine

# Production optimized
npx ai-dockerfile --production

# With compose file
npx ai-dockerfile --compose

Output Includes

  • Dockerfile with comments
  • .dockerignore file
  • docker-compose.yml (optional)
  • Build instructions

Features

  • Multi-stage builds for smaller images
  • Non-root user setup
  • Health checks
  • Proper signal handling
  • Layer caching optimization

Requirements

Node.js 18+. OPENAI_API_KEY required.

License

MIT. Free forever.


Built by LXGIC Studios

Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

Not specified

Source path

skills/dockerfile-gen

Default branch

main

Latest commit

b80cde2

Tree SHA

fc3a971