Agent Containerizer

Generates a standard Dockerfile that includes both Python and Node.js environments for AI agents.

GoogleCloudPlatform 0d2a472 2 files · 2.0 KB Updated

File contents

agent-containerizer

This skill helps you package your AI agent into a production-ready container. It ensures that both Python (for ADK) and Node.js (for toolsets like reddit-mcp) are correctly installed and available.

Usage

Ask Antigravity to:

  • "Generate a Dockerfile for my agent"
  • "Containerize my project for Cloud Run"
  • "Make sure reddit-mcp works in my Docker image"

Container Pattern

The generated Dockerfile includes:

  1. Python 3.12-slim Base: A lightweight foundation for the agent logic.
  2. Node.js Installation: Essential for running MCP servers distributed via npm or npx.
  3. Global Tool Installation: Pre-installs standard tools like reddit-mcp to speed up startup.
  4. uv Integration: Uses the uv package manager for fast and reproducible Python dependency installation.
  5. FastAPI Setup: Configures the container to run the uvicorn server on the correct port (8080).

Dockerfile Template

Refer to the included resources/Dockerfile for the standard implementation.

googlecloudplatform/devrel-demos/tree/main/ai-ml/dev-signal/.agent/skills/agent-containerizer commit 0d2a47226a

Frequently asked questions

npx skillmds@latest add googlecloudplatform/agent-containerizer