{"id":50763437,"url":"https://github.com/ramesherrorhunter/kiro-docker-agent","last_synced_at":"2026-06-11T12:30:24.461Z","repository":{"id":353910645,"uuid":"1221369968","full_name":"ramesherrorhunter/kiro-docker-agent","owner":"ramesherrorhunter","description":"Kiro agent for Docker operations — build, run, and manage containers","archived":false,"fork":false,"pushed_at":"2026-04-26T07:14:27.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-26T08:34:08.022Z","etag":null,"topics":["ai-agents","automation","conta","devops","docker","kiro"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ramesherrorhunter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-26T05:30:31.000Z","updated_at":"2026-04-26T07:53:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ramesherrorhunter/kiro-docker-agent","commit_stats":null,"previous_names":["ramesherrorhunter/kiro-custom-agents"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ramesherrorhunter/kiro-docker-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramesherrorhunter%2Fkiro-docker-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramesherrorhunter%2Fkiro-docker-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramesherrorhunter%2Fkiro-docker-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramesherrorhunter%2Fkiro-docker-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramesherrorhunter","download_url":"https://codeload.github.com/ramesherrorhunter/kiro-docker-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramesherrorhunter%2Fkiro-docker-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34199516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","automation","conta","devops","docker","kiro"],"created_at":"2026-06-11T12:30:23.433Z","updated_at":"2026-06-11T12:30:24.449Z","avatar_url":"https://github.com/ramesherrorhunter.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# dockerfile-agent\n\nAn intelligent Kiro CLI agent that auto-generates production-ready Dockerfiles by analyzing your codebase — no manual configuration needed.\n\n---\n\n## Purpose\n\nEliminate the manual effort of writing Dockerfiles. The agent inspects your project, detects its language and framework, and produces an optimized, secure Dockerfile with a matching `.dockerignore`.\n\n---\n\n## Solutions Offered\n\n| Problem | Solution |\n|---|---|\n| Writing Dockerfiles from scratch | Auto-generates based on project files |\n| Bloated images | Enforces minimal base images (`alpine`/`slim`) |\n| Security risks from root containers | Always sets a non-root user |\n| Slow builds | Applies multi-stage builds where beneficial |\n| Missing `.dockerignore` | Auto-generates alongside the Dockerfile |\n\n---\n\n## Benefits\n\n- **Zero config** — infers everything from your project files\n- **Secure by default** — non-root user, minimal attack surface\n- **Optimized images** — multi-stage builds, production-only dependencies\n- **Multi-language support** — Node.js, Python, Go, Java, Rust, Ruby, and generic projects\n- **Consistent output** — follows the same best-practice sequence every time\n\n---\n\n## How It Works\n\nThe agent runs 4 skills in sequence:\n\n```\nanalyze_project → resolve_strategy → generate_dockerfile → generate_dockerignore\n```\n\n| Skill | What it does |\n|---|---|\n| `analyze_project` | Detects language, framework, and port in a single pass |\n| `resolve_strategy` | Decides single-stage vs multi-stage build |\n| `generate_dockerfile` | Writes the optimized Dockerfile with best practices applied |\n| `generate_dockerignore` | Writes the `.dockerignore` |\n\n---\n\n## Installation\n\n**1. Clone the repo**\n```bash\ngit clone https://github.com/ramesherrorhunter/kiro-docker-agent.git\n```\n\n**2. Copy the agent into your project**\n```bash\ncp -r kiro-custom-agents/.kiro /path/to/your/project/\n```\n\nOr copy into the current directory:\n```bash\ncp -r kiro-custom-agents/.kiro .\n```\n\nThat's it — the agent and all skills are now available in your project.\n\n---\n\n## SOP — Standard Operating Procedure\n\n### Prerequisites\n- Kiro CLI installed\n- Project directory accessible\n\n### Steps\n\n**1. Navigate to your project**\n```bash\ncd /path/to/your/project\n```\n\n**2. Start Kiro CLI**\n```bash\nkiro-cli\n```\n\n**3. Select the agent**\n\nType `/agent` and from the dropdown select `dockerfile-agent`\n\n**4. Review generated files**\n```\nDockerfile        ← production-ready, optimized\n.dockerignore     ← auto-generated exclusions\n```\n\n**5. Build and verify**\n```bash\ndocker build -t my-app .\ndocker run --rm my-app\n```\n\n### Expected Outputs\n\n| File | Description |\n|---|---|\n| `Dockerfile` | Multi-stage, minimal, non-root, port-exposed |\n| `.dockerignore` | Excludes dev files, caches, secrets |\n\n### Supported Languages\n\n| Indicator File | Detected Language | Default Port |\n|---|---|---|\n| `package.json` | Node.js | 3000 |\n| `requirements.txt` / `pyproject.toml` | Python | 8000 |\n| `go.mod` | Go | 8080 |\n| `pom.xml` / `build.gradle` | Java | 8080 |\n| `Cargo.toml` | Rust | 8080 |\n| `Gemfile` | Ruby | 3000 |\n| *(none matched)* | Generic | 3000 |\n\n### Port Detection (priority order)\n1. `.env.example` or `.env.sample` — `PORT=\u003cnumber\u003e`\n2. `package.json` start script — `PORT=\u003cnumber\u003e` or `--port \u003cnumber\u003e`\n3. Framework-specific default (see table above)\n4. Fallback → `3000`\n\n### Notes\n- Default port is `3000` if none is detected\n- Do not manually edit the Dockerfile before the agent finishes\n- Re-run the agent after major dependency or framework changes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framesherrorhunter%2Fkiro-docker-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framesherrorhunter%2Fkiro-docker-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framesherrorhunter%2Fkiro-docker-agent/lists"}