fix(adguard-exporter): create empty GeoLite2 placeholder to skip geo metrics
All checks were successful
Build and push adguard-exporter image / build-and-push-image (push) Successful in 3m54s

This commit is contained in:
Andreas Meier 2026-06-26 13:07:00 +02:00
parent 0afa3eb181
commit e1d798c432

View File

@ -14,6 +14,9 @@ ARG TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -ldflags="-s -w" -o adguard-exporter . go build -ldflags="-s -w" -o adguard-exporter .
# Create empty GeoLite2 placeholder (geo metrics disabled without real DB)
RUN touch /app/GeoLite2-City.mmdb
FROM alpine:3.24 AS certs FROM alpine:3.24 AS certs
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates