Update Dockerfile.bird_exporter
This commit is contained in:
parent
9bfccb684e
commit
79dd4b249b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user