Files
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 line
1.9 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [environment-type] | --development | --production | --microservices | --compose\ndescription: Setup Docker containerization with multi-stage builds and development workflows\n---\n\n# Setup Docker Containers\n\nSetup comprehensive Docker containerization for development and production: **$ARGUMENTS**\n\n## Current Project State\n\n- Application type: @package.json or @requirements.txt (detect Node.js, Python, etc.)\n- Existing Docker: @Dockerfile or @docker-compose.yml (if exists)\n- Dependencies: !`find . -name \"package-lock.json\" -o -name \"poetry.lock\" -o -name \"Pipfile.lock\" | wc -l`\n- Services needed: Database, cache, message queue detection from configs\n\n## Task\n\nImplement production-ready Docker containerization with optimized builds and development workflows:\n\n**Environment Type**: Use $ARGUMENTS to specify development, production, microservices, or Docker Compose setup\n\n**Containerization Strategy**:\n1. **Dockerfile Creation** - Multi-stage builds, layer optimization, security best practices\n2. **Development Workflow** - Hot reloading, volume mounts, debugging capabilities\n3. **Production Optimization** - Image size reduction, security scanning, health checks\n4. **Multi-Service Setup** - Docker Compose, service discovery, networking configuration\n5. **CI/CD Integration** - Build automation, registry management, deployment pipelines\n6. **Monitoring & Logs** - Container observability, log aggregation, resource monitoring\n\n**Security Features**: Non-root users, minimal base images, vulnerability scanning, secrets management.\n\n**Performance Optimization**: Layer caching, build contexts, multi-platform builds, and resource constraints.\n\n**Output**: Complete Docker setup with optimized containers, development workflows, production deployment, and comprehensive documentation."}