INNER CODE UNIT · Python
generate_dockerfile
omnirexflora-labs/omnicoreagent · src/omnicoreagent/serve/cli.py:536
def generate_dockerfile(file_path: str, output_dir: str):
"""Generate a Dockerfile for deploying your agent.
Works both locally and on cloud platforms (Cloud Run, AWS Fargate, Railway).
- Copies all files into the image
- Uses environment variables for configuration
Example:
omniserve generate-dockerfile --file my_agent.py
"""
from rich.console import Console
console = Console()
console.print("[bold blue]OmniServe Cloud Deployment Generator[/bold blue]")
console.print(
"Generates a cloud-ready Dockerfile for Cloud Run, AWS Fargate, Railway.\n"
)