Files
gitea-search/Dockerfile
Raymond Scott Pert 61574855bf Initial commit: Gitea code search with MeiliSearch + MCP
Go indexer (full re-index + webhook), MeiliSearch integration,
MCP server exposing gitea_search tool for LLM agents.
K8s manifests for MeiliSearch + indexer CronJob.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 01:27:42 +00:00

26 lines
691 B
Docker

FROM golang:1.22-alpine AS builder
RUN apk add --no-cache git
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /indexer ./cmd/indexer
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /mcp-server ./cmd/mcp-server
# --- Indexer image (includes git for cloning) ---
FROM alpine:3.20 AS indexer
RUN apk add --no-cache git ca-certificates
COPY --from=builder /indexer /usr/local/bin/indexer
ENTRYPOINT ["indexer"]
# --- MCP server image (minimal) ---
FROM alpine:3.20 AS mcp-server
RUN apk add --no-cache ca-certificates
COPY --from=builder /mcp-server /usr/local/bin/mcp-server
ENTRYPOINT ["mcp-server"]