docs: remove verbose comments from Dockerfiles
This commit is contained in:
1 parent
cb6b8618c2
commit
1a3fbe042e
2 files changed
+8
-33
No files matched your search
+4
-16
@@ -3,10 +3,8 @@
|
||||
# Language packages are installed at runtime via uv/npm/go.
|
||||
#
|
||||
# Build: docker build -t archie-agent:latest .
|
||||
# This image is launched only by archied with a daemon-written task brief,
|
||||
# task worktree mount, and authenticated NATS environment.
|
||||
|
||||
# ── builder ───────────────────────────────────────────────────────────
|
||||
# ── builder ──
|
||||
FROM golang:1.27-trixie AS builder
|
||||
ARG RUNTIME_VERSION=dev
|
||||
WORKDIR /src
|
||||
@@ -17,17 +15,15 @@ RUN CGO_ENABLED=0 go build \
|
||||
-ldflags "-X github.com/samcharles93/archie-core/internal/app/agentworker.version=${RUNTIME_VERSION} -X github.com/samcharles93/archie-core/internal/installtype.buildType=container" \
|
||||
-o /usr/local/bin/archie-agent ./cmd/archie-agent/
|
||||
|
||||
# Same Debian release as the runtime, so glibc matches.
|
||||
FROM node:24-trixie-slim AS node
|
||||
|
||||
# ── runtime ───────────────────────────────────────────────────────────
|
||||
# ── runtime ──
|
||||
FROM debian:trixie-slim
|
||||
ARG RUNTIME_VERSION=dev
|
||||
LABEL org.opencontainers.image.version="${RUNTIME_VERSION}"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# build-essential is for agents building native npm/Python extensions.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
@@ -41,7 +37,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
openssh-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ── Node.js 24 ────────────────────────────────────────────────────────
|
||||
# ── Node.js 24 ──
|
||||
COPY --from=node /usr/local/bin/node /usr/local/bin/node
|
||||
COPY --from=node /usr/local/include/node /usr/local/include/node
|
||||
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
|
||||
@@ -50,7 +46,7 @@ RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
|
||||
npm install -g pnpm typescript tsx esbuild stylelint htmlhint && \
|
||||
npm cache clean --force
|
||||
|
||||
# ── Go ────────────────────────────────────────────────────────────────
|
||||
# ── Go ──
|
||||
# Reuse the builder's toolchain so the runtime Go can't drift from the one
|
||||
# archie-agent was compiled with.
|
||||
COPY --from=builder /usr/local/go /usr/local/go
|
||||
@@ -58,12 +54,6 @@ ENV GOPATH="/go"
|
||||
# /go/bin must be on PATH or anything `go install` puts there is unreachable.
|
||||
ENV PATH="/usr/local/go/bin:/go/bin:${PATH}"
|
||||
|
||||
# Pinned release binaries. Building these with `go install` pulled ~2GB of
|
||||
# module and build cache into the image. delve is omitted because it ships no
|
||||
# prebuilt binary; `go install ...@latest` at runtime if an agent needs it.
|
||||
#
|
||||
# golangci-lint owns ordinary source formatting and lint checks. Standalone
|
||||
# gofumpt is retained for generated protobuf contracts in tools/proto.sh.
|
||||
ARG GOLANGCI_LINT_VERSION=2.13.2
|
||||
ARG GOFUMPT_VERSION=0.11.0
|
||||
ARG BUF_VERSION=1.72.0
|
||||
@@ -78,8 +68,6 @@ RUN curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/v${G
|
||||
chmod +x /usr/local/bin/gofumpt /usr/local/bin/buf
|
||||
|
||||
# ── Python via uv ─────────────────────────────────────────────────────
|
||||
# uv manages its own interpreters — no apt Python, no deadsnakes PPA. One
|
||||
# version is the default; agents can `uv python install <other>` on demand.
|
||||
ARG PYTHON_VERSION=3.14
|
||||
RUN curl -fsSL https://astral.sh/uv/install.sh | sh
|
||||
ENV PATH="/root/.local/bin:${PATH}"
|
||||
|
||||
+4
-17
@@ -1,4 +1,4 @@
|
||||
# archied — the archie daemon, built as a standalone container.
|
||||
# archied — the archie daemon
|
||||
# Run via docker compose alongside NATS.
|
||||
|
||||
FROM golang:1.27-trixie AS builder
|
||||
@@ -11,19 +11,7 @@ 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 && \
|
||||
@@ -33,8 +21,7 @@ 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"]
|
||||
Reference in new issue
Block a user