subidx/Dockerfile
lakshit verma b56447f067
Add web dashboard, live feed, and deployment configs
- Embedded Svelte dashboard: search, virtualized results, filter, sort,
  dates, export, rate budget meter, streaming NDJSON search
- Live feed: SSE /v1/feed, delta polling /v1/watch, x-max-seq cursor,
  ingest hook and subscriber hub, store mutex fix so reads never starve
  behind ingest backlog
- gzip middleware, /v1/stats with cache and bounded top-k
- CORS allow-list flag for split frontend deployments
- Dockerfile + render.yaml + vercel.json, serve gains -no-drain
2026-08-26 21:24:26 +05:30

16 lines
391 B
Docker

FROM golang:1.26-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o subidx .
FROM alpine:3.21
RUN adduser -D subidx
COPY --from=build /src/subidx /usr/local/bin/subidx
COPY scripts/start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh
USER subidx
VOLUME /var/data
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/start.sh"]