Skip to content
Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Docker

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

Multi-stage Dockerfile for reproducible Linux builds.

Targets

Target Purpose
base rust:1.85-bookworm, install pinned libzmq3-dev / pkgconf, cargo fetch
core cargo check/clippy/test --no-default-features
full cargo check/clippy/test --all-features
final (default) From full; release build with corpus-ipc; non-root appuser; CMD --help

Build

# Stub / core validation image
docker build --target core -t brainstem-daemon:core .

# Full feature validation
docker build --target full -t brainstem-daemon:full .

# Default final (release binary with corpus-ipc)
docker build -t brainstem-daemon:full .

Runtime Notes

  • Final image runs as UID 10001 (appuser).
  • CMD points at pre-built /app/target/release/soma-daemon --help (no compile at runtime).
  • Base stage still installs libzmq for fetch/full paths; core target validates the no-default-features feature set.

Related


Last updated: July 28, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: 8176c58 (main)

Clone this wiki locally