generate_dockerfile
Generate a security-hardened multi-stage Dockerfile for Node.js, Python, or Go applications. Supports Next.js standalone, Express, FastAPI, Django, and custom runtimes.
Instructions
[PRO] Generate an optimized, security-hardened multi-stage Dockerfile. Supports Node.js (including Next.js standalone), Python (FastAPI/Django), and Go. Features: multi-stage builds, non-root user, minimal final image, HEALTHCHECK.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runtime": "<runtime>"
},
"name": "generate_dockerfile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port the app listens on (default: 3000) | |
| runtime | Yes | Runtime/language for the Dockerfile | |
| version | No | Runtime version (e.g. "20" for Node.js, "3.12" for Python, "1.22" for Go) | |
| app_type | No | App type hint: "nextjs" for Next.js standalone, "express" for generic Node, etc. | |
| package_manager | No | Package manager for Node.js projects (default: npm) | npm |