- Rename cmd/searxng-go to cmd/kafka - Remove all SearXNG references from source comments while keeping "SearXNG-compatible API" in user-facing docs - Update binary paths in README, CLAUDE.md, and Dockerfile - Update log message to "kafka starting" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
533 B
Docker
27 lines
533 B
Docker
# Build stage
|
|
FROM golang:1.24-alpine AS builder
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /src
|
|
|
|
# Cache module downloads
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Copy source and build
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /kafka ./cmd/kafka
|
|
|
|
# Runtime stage
|
|
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
COPY --from=builder /kafka /usr/local/bin/kafka
|
|
COPY config.example.toml /etc/kafka/config.example.toml
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["kafka"]
|
|
CMD ["-config", "/etc/kafka/config.toml"]
|