Deployment
Overview
crocbot supports two deployment paths:- Local — native Node for development and testing
- Docker — runtime-only container for production or isolated environments
Local Deployment (Node)
Run crocbot directly on your machine with Node.js.Prerequisites
- Node.js 22+
- pnpm
Quick Start
Environment Variables
Set these in.env or export them:
Commands
Docker Deployment
Use Docker for production or isolated environments. The Dockerfile packages a pre-builtdist/ into a lean node:22-slim runtime image.
Prerequisites
- Docker Engine + Docker Compose v2
- Pre-built
dist/directory (pnpm build)
Quick Start
Environment Variables
Set these in.env or export them:
Commands
CI/CD Pipeline
The repository includes CI workflows:ci.yml— runs lint, build, and tests on push/PRdocker-release.yml— builds and publishes Docker images on releasesecurity.yml— CodeQL security scanning
Release Process
- Update version in
package.json - Update
CHANGELOG.md - Create release commit
- Tag with version:
git tag vYYYY.M.D - Push with tags:
git push --tags - CI builds and publishes Docker image
