chore(PROJ-60): Xapian-Reste aus Dockerfile, Makefile und Doku entfernen
Dockerfile und Makefile bauten noch mit CGO_ENABLED=1 -tags xapian und installierten libxapian-dev/libxapian30, obwohl der Xapian-Code bereits entfernt wurde. PRD.md und api-v1.md erwähnten Xapian noch im Tech-Stack bzw. als Such-Syntax-Referenz. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
7c028601cf
commit
c1338f6721
+5
-9
@@ -1,25 +1,20 @@
|
||||
# ── Stage 1: Go Backend Build (CGO + Xapian) ─────────────────────────────────
|
||||
# ── Stage 1: Go Backend Build (CGO-frei, Manticore Search) ───────────────────
|
||||
FROM golang:1.24-bookworm AS go-builder
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libxapian-dev pkg-config build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /build
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 go build -tags xapian -buildvcs=false \
|
||||
RUN CGO_ENABLED=0 go build -buildvcs=false \
|
||||
-ldflags="-s -w" \
|
||||
-o /out/archivmail ./cmd/archivmail/
|
||||
|
||||
# ── Stage 2: Runtime Image ────────────────────────────────────────────────────
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
# Xapian runtime library only (no dev headers)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libxapian30 ca-certificates \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd --system --shell /bin/false --uid 999 --create-home archivmail
|
||||
@@ -27,7 +22,8 @@ RUN useradd --system --shell /bin/false --uid 999 --create-home archivmail
|
||||
COPY --from=go-builder /out/archivmail /usr/local/bin/archivmail
|
||||
|
||||
# Volumes: config + data werden von außen gemountet
|
||||
RUN mkdir -p /var/archivmail/store /var/archivmail/astore /var/archivmail/xapian \
|
||||
# Manticore Search läuft als eigener Dienst/Container (Port 9306), nicht hier
|
||||
RUN mkdir -p /var/archivmail/store /var/archivmail/astore \
|
||||
&& chown -R archivmail:archivmail /var/archivmail
|
||||
|
||||
USER archivmail
|
||||
|
||||
Reference in New Issue
Block a user