Update Dockerfile.bird_exporter

This commit is contained in:
Manevolent 2023-04-13 15:38:02 -06:00 committed by GitHub
parent 9bfccb684e
commit 79dd4b249b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,9 @@
FROM golang as builder FROM golang as builder
ENV BIRD_EXPORTER_VERSION 1.4.1
WORKDIR /go/ WORKDIR /go/
RUN git clone -b 1.4.1 https://github.com/czerwonk/bird_exporter.git RUN git clone -b $BIRD_EXPORTER_VERSION https://github.com/czerwonk/bird_exporter.git
WORKDIR /go/bird_exporter WORKDIR /go/bird_exporter
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/bird_exporter RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/bird_exporter