Docker packages your scripts with all dependencies so they run identically everywhere—your laptop, a server, or the cloud.
# Dockerfile for a marketing AI agent
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Environment variables (set at runtime, not in Dockerfile)
ENV ANTHROPIC_API_KEY=''
ENV GOOGLE_ADS_DEVELOPER_TOKEN=''
CMD ["python", "agent.py"]
# Build and run:
# docker build -t campaign-agent .
# docker run -e ANTHROPIC_API_KEY='your-key' campaign-agent
# Deploy to Google Cloud Run:
# gcloud run deploy campaign-agent \
# --image gcr.io/PROJECT/campaign-agent \
# --set-env-vars ANTHROPIC_API_KEY=your-key
Get a free 30-day audit of your advertising accounts. John will personally review your setup and provide actionable recommendations.
John will review your account and reach out within 24 hours.