archie-gateway no longer links the daemon, the web UI or archied. Shared runtime layering, watches, catalog, NATS discovery and the State Store client live in servicekit; chat task profiles in chattask. The Gateway waits for the daemon's NATS endpoint instead of starting a second broker, and chat approvals go through the task-action client instead of a local service with no daemon behind it. Version stamping uses buildinfo only.
28 lines
1.0 KiB
Docker
28 lines
1.0 KiB
Docker
# archied — the archie daemon
|
|
# 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/buildinfo.Version=${GATEWAY_VERSION} -X github.com/samcharles93/archie-core/internal/buildinfo.Runtime=${RUNTIME_VERSION} -X github.com/samcharles93/archie-core/internal/installtype.buildType=container" \
|
|
-o /usr/local/bin/archied ./cmd/archied/
|
|
|
|
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}"
|
|
|
|
COPY CHANGELOG.md /usr/share/archie/CHANGELOG.md
|
|
|
|
ENTRYPOINT ["archied"]
|