mirror of
https://github.com/vee1e/subidx.git
synced 2026-09-01 09:50:18 +00:00
- 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
16 lines
391 B
Docker
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"]
|