dockfix
v1.0.1
Published
CLI to detect Node.js stacks and generate/test Dockerfiles.
Maintainers
Readme
dockfix
dockfix is a CLI that detects common Node.js project types and generates a Docker setup, then optionally builds/runs to validate.
Supported project types
- Next.js
- Create React App (
react-scripts) - NestJS
- Express
- Fastify
- Vite (static build served by nginx)
- Generic Node.js (fallback)
Install
Global:
npm install -g dockfixOne-off with npx:
npx dockfix init .Usage
Generate Docker files in current repo:
dockfix init .Clone or update repo, generate Dockerfile, build, and run:
dockfix clone https://github.com/<owner>/<repo>.gitUse AI Dockerfile refinement loop:
export OPENAI_API_KEY=your_key
dockfix dockerize-ai .Allow safe config-only fixes during failure handling:
dockfix clone https://github.com/<owner>/<repo>.git --allow-file-fixesPublish to npm
- Log in:
npm login- Build:
npm run build- Publish:
npm publish --access publicLocal development
npm install
npm run build
npm linkNow dockfix is available globally from your local checkout.
