# archied — the archie daemon, built as a standalone container. # Run via docker compose alongside NATS. FROM golang:1.27-trixie AS builder WORKDIR /src COPY go.mod go.sum ./ RUN go mod download COPY . . ARG GATEWAY_VERSION=dev ARG RUNTIME_VERSION=dev RUN CGO_ENABLED=0 go build \ -ldflags "-X github.com/samcharles93/archie-core/internal/app/archied.gatewayVersion=${GATEWAY_VERSION} -X github.com/samcharles93/archie-core/internal/app/archied.runtimeVersion=${RUNTIME_VERSION} -X github.com/samcharles93/archie-core/internal/installtype.buildType=container" \ -o /usr/local/bin/archied ./cmd/archied/ # archied is static, but this can't be scratch: in inprocess mode the daemon # runs agent tools itself, and the shell tool invokes bash; codesearch shells # to git. Worktrees don't count — internal/worktree uses go-git. This image # is not part of the current deployment (docker-compose.yml only builds # Dockerfile, the agent image; archied runs on the host under systemd), but # if it's ever used in inprocess mode, grep needs ripgrep on PATH -- it is # no longer embedded in the binary. # # No Node: the builtin tools (read/write/edit/find/grep/shell/test) cover what # desktop-commander did. Any npx-launched MCP stdio server will now fail to # start, and a failed provider rolls back the tool-provider family and exits # the daemon — so remove tools.mcp_servers entries needing npx before # deploying this image. FROM debian:trixie-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates git && \ rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/local/bin/archied /usr/local/bin/archied ARG GATEWAY_VERSION=dev ARG RUNTIME_VERSION=dev LABEL org.opencontainers.image.version="${GATEWAY_VERSION}" LABEL cloud.catlow.archie.runtime-version="${RUNTIME_VERSION}" # One release stream: CHANGELOG.md carries every release section, with each # component's detail as a labelled section inside it. The per-component files # this used to copy were deleted with the split release. COPY CHANGELOG.md /usr/share/archie/CHANGELOG.md ENTRYPOINT ["archied"]