sekuire docker-init
Generate production-ready Dockerfiles, docker-compose configs, and CI pipeline files for containerized agent deployment.
Usage
bash
sekuire docker-init [OPTIONS]Options
| Option | Description |
|---|---|
--output <DIR> | Output directory (default: current directory) |
--cloudflare | Include Cloudflare Tunnel configuration |
--port <PORT> | Agent port (default: 8000) |
--ci | Generate CI pipeline files (GitHub Actions) |
Examples
Basic Docker Setup
bash
sekuire docker-initWith Cloudflare Tunnel
bash
sekuire docker-init --cloudflare --port 3000With CI Pipeline
bash
sekuire docker-init --ci --output deploy/Generated Files
Generated structuretext
./
├── Dockerfile # Multi-stage production build
├── Dockerfile.dev # Development with hot-reload
├── docker-compose.yml # Local development stack
├── docker-compose.prod.yml # Production overrides
├── .dockerignore # Build exclusions
└── .github/ # (with --ci flag)
└── workflows/
└── deploy.yml # Build, scan, push pipelineℹ️When
--cloudflare is specified, the compose file includes a cloudflared service for tunnel-based ingress.Dockerfile Features
- Multi-stage builds for minimal production images
- Non-root user for security
- Health check endpoint configured
- Sekuire CLI pre-installed for heartbeat
- Language-specific optimizations (node_modules caching, cargo layer caching)
Next Steps
- registry - Push images to Sekuire OCI registry
- OCI Registry - Registry architecture
- Deployment Guide - Full deployment workflow