77b5a4ce4e
- Hub service receives reports from customer controllers - SQLite store with 90-day retention and auto-prune - REST API: POST /api/v1/report, GET /api/v1/customers - Dark theme dashboard with status overview table - Customer detail page with system, storage, containers, backup, health - Bearer token auth for report ingest, bcrypt auth for dashboard - K8s manifest for felhom-system namespace (Deployment, Service, Ingress, PVC) - Dockerfile with multi-stage build Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
567 B
Docker
31 lines
567 B
Docker
FROM golang:1.24-alpine AS builder
|
|
|
|
ARG VERSION=dev
|
|
ARG BUILD_TIME=unknown
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 go build \
|
|
-ldflags "-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}" \
|
|
-o /felhom-hub ./cmd/hub/
|
|
|
|
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
COPY --from=builder /felhom-hub /usr/local/bin/felhom-hub
|
|
|
|
RUN mkdir -p /data /etc/felhom-hub
|
|
|
|
ENV TZ=Europe/Budapest
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/usr/local/bin/felhom-hub"]
|
|
CMD ["-config", "/etc/felhom-hub/hub.yaml"]
|