snowclaw build

Build both Docker images without running or deploying them. Useful for validating the build context or prewarming local caches.

Usage

snowclaw build

What it does

  1. Assembles the build context into .snowclaw/build/:
    • Dockerfile (with OPENCLAW_VERSION substituted)
    • docker-compose.yml
    • config/connections.toml
    • scripts/docker-entrypoint.sh
    • skills/, plugins/, proxy/, build-hooks/
    • spcs/service.yaml and spcs/network-rules.sql
  2. Builds the OpenClaw gateway image (layers your config, Cortex Code, gh, and any build hooks on top of ghcr.io/openclaw/openclaw).
  3. Builds the Cortex proxy sidecar image (a slim python:3.12-slim with FastAPI + httpx).

No containers are started and nothing is pushed to Snowflake. To run the stack, use snowclaw dev; to deploy, use snowclaw deploy.

When to run it explicitly

  • Debugging a failing build hook in isolation
  • Verifying that a new plugin or changed Dockerfile layer compiles
  • Warming your local Docker cache before a demo