ai-dockerfile
v1.0.0
Published
Scans your project and generates an optimized multi-stage Dockerfile
Downloads
98
Readme
ai-dockerfile
Writing Dockerfiles is tedious. This tool scans your project and generates an optimized multi-stage Dockerfile that actually makes sense.
Install
npm install -g ai-dockerfileUsage
# Generate a Dockerfile
npx ai-dockerfile
# Generate an optimized multi-stage build
npx ai-dockerfile --optimize
# Preview without writing
npx ai-dockerfile --preview
# Custom output path
npx ai-dockerfile --output ./docker/DockerfileWhat it does
Looks at your project structure, figures out the runtime, framework, and build steps, then generates a proper multi-stage Dockerfile. It handles Node.js, Python, Go, Rust, and more.
Requirements
Set your OPENAI_API_KEY environment variable.
export OPENAI_API_KEY=sk-...License
MIT
