Add site analyzer service

This commit is contained in:
2026-05-04 10:36:34 +01:00
parent 1bebbd6bbd
commit ee1d674713
8 changed files with 832 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
# --- Site Analyzer Service Dockerfile ---
# Multi-stage build for minimal image size
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /site-analyzer .
FROM alpine:3.19
RUN apk --no-cache add ca-certificates
COPY --from=builder /site-analyzer /site-analyzer
EXPOSE 8090
ENTRYPOINT ["/site-analyzer"]