Skip to main content

Deployment

Overview

crocbot supports two deployment paths:
  1. Local — native Node for development and testing
  2. 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-built dist/ 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

See Docker Installation for full documentation.

CI/CD Pipeline

The repository includes CI workflows:
  • ci.yml — runs lint, build, and tests on push/PR
  • docker-release.yml — builds and publishes Docker images on release
  • security.yml — CodeQL security scanning

Release Process

  1. Update version in package.json
  2. Update CHANGELOG.md
  3. Create release commit
  4. Tag with version: git tag vYYYY.M.D
  5. Push with tags: git push --tags
  6. CI builds and publishes Docker image

Docker Environment Variables

See Docker Environment Variables for the full list of supported environment variables.