monitoring: update crowdsec

This commit is contained in:
2026-05-16 00:28:15 +04:00
parent 504619b7b4
commit 5a2c6e2d50
7 changed files with 262 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM golang:1.26-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY main.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags='-s -w' -o /exporter .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /exporter /exporter
EXPOSE 9100
ENTRYPOINT ["/exporter"]