Skip to content
Back to skills

Dockerfile Gen

ASecurity

Generate optimized Dockerfiles for any project

  • 651 stars
  • 0 votes
  • 3 copies
  • 12 views
  • Added February 10, 2026
developmentpythongobashnodedockergitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add sundial-org/awesome-openclaw-skills --skill dockerfile-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dockerfile Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dockerfile Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sundial-org-dockerfile-gen/badge)](https://www.skillsdirectory.com/skills/sundial-org-dockerfile-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dockerfile-gen
description: Generate optimized Dockerfiles for any project
---

# Dockerfile Generator

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

## Quick Start

```bash
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

```bash
# 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**

- GitHub: [github.com/lxgicstudios/ai-dockerfile](https://github.com/lxgicstudios/ai-dockerfile)
- Twitter: [@lxgicstudios](https://x.com/lxgicstudios)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…