Create Dockerfile.bird_exporter
This commit is contained in:
parent
d68f6bf0ca
commit
7367438c35
15
Dockerfile.bird_exporter
Normal file
15
Dockerfile.bird_exporter
Normal file
@ -0,0 +1,15 @@
|
||||
ROM golang as builder
|
||||
|
||||
WORKDIR /go/
|
||||
RUN git clone -b 1.4.1 https://github.com/czerwonk/bird_exporter.git
|
||||
|
||||
WORKDIR /go/bird_exporter
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/bird_exporter
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates bash
|
||||
WORKDIR /app
|
||||
COPY --from=builder /go/bin/bird_exporter .
|
||||
EXPOSE 9324
|
||||
|
||||
ENTRYPOINT ["/app/bird_exporter"]
|
Loading…
x
Reference in New Issue
Block a user