This repository owns the reusable OpenClaw runtime image for Lagoon deployments. It builds the base container once and publishes it to GHCR so downstream Lagoon projects can pull the image instead of copying this entire repository and rebuilding the same stack.
The image is published to:
ghcr.io/amazeeio/openclaw-lagoon-base:latestghcr.io/amazeeio/openclaw-lagoon-base:mainghcr.io/amazeeio/openclaw-lagoon-base:<git-tag>for version tags such asv2026.3.8
latest is the floating consumer tag. main is the integration tag. Version tags are the rollback-safe option.
This repo is the source of truth for:
- The multi-stage Docker build for OpenClaw
- The OpenClaw runtime dependencies and OS packages
- Lagoon entrypoint orchestration
- SSH key bootstrap for Git access
- amazee.ai model discovery and runtime config generation
- Shell prompt configuration and dashboard URL helpers
- Bundled bootstrap instructions copied into the runtime workspace
Downstream repos should not duplicate these files.
A GitHub Actions workflow at .github/workflows/publish.yml builds and publishes the image to GHCR on every push to main, and also on version tags matching v*.
The workflow uses the repository GITHUB_TOKEN to publish to GHCR. After the first publish, set the package visibility to public in GitHub Packages if it is not already public.
This repository includes a helper script for bumping the packaged OpenClaw version and creating the matching git tag that drives tagged image builds.
./scripts/release-openclaw.shThat command resolves the latest published openclaw npm version, updates ARG OPENCLAW_VERSION in Dockerfile, creates a commit, and creates an annotated tag in the format v<version>.
To pin a specific version:
./scripts/release-openclaw.sh 2026.3.8To also push the branch and tag to origin:
./scripts/release-openclaw.sh --pushThis repository can also release itself automatically when a newer openclaw
npm package is published. The scheduled workflow at
.github/workflows/release-openclaw.yml runs four times per day and also
supports manual dispatch.
When it detects a newer OpenClaw version, it runs the same release helper, commits the Dockerfile bump, creates the matching annotated git tag, pushes both, and publishes the GHCR image in the same workflow run.
No extra repository secret is required for the scheduled release flow. It uses
the repository GITHUB_TOKEN to push the release commit and tag, and to publish
the image directly. This avoids relying on a second workflow trigger from the
automation-created push.
Repository-local agent guidance for this workflow is stored in AGENTS.md.
A downstream Lagoon repo can reference the published image directly in docker-compose.yml:
services:
openclaw-gateway:
image: ghcr.io/amazeeio/openclaw-lagoon-base:latest
user: "10000"
env_file:
- .env
volumes:
- ./.local:/home/.openclaw
ports:
- "3000:3000"
labels:
lagoon.type: node-persistent
lagoon.persistent: /home/.openclawIf a downstream project needs extra tooling, prefer a tiny derivative Dockerfile such as:
FROM ghcr.io/amazeeio/openclaw-lagoon-base:latest
RUN apt-get update && apt-get install -y ripgrep && rm -rf /var/lib/apt/lists/*If the downstream change is reusable across deployments, make it here instead.
For local verification of the base image itself:
docker build -t openclaw-lagoon-base:dev .
docker run --rm -p 3000:3000 --env-file .env openclaw-lagoon-base:devThe image expects the same environment variables currently used by OpenClaw Lagoon deployments, including:
AMAZEEAI_BASE_URLAMAZEEAI_API_KEYAMAZEEAI_DEFAULT_MODELSSH_PRIVATE_KEYwhen Git access is requiredSLACK_APP_TOKENandSLACK_BOT_TOKENfor Slack integration
Runtime state is stored under /home/.openclaw.