1.github
https://github.com/mehdy/keepalived-exporter
2.dockerfile
FROM golang:1.17 ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct" COPY keepalived-exporter-1.2.0 /apps/keepalived-exporter-1.2.0 WORKDIR /apps/keepalived-exporter-1.2.0 RUN make build RUN cp /apps/keepalived-exporter-1.2.0/keepalived-exporter /bin/keepalived-exporter WORKDIR /bin EXPOSE 9165 ENTRYPOINT [ "./keepalived-exporter" ]
标签:exporter,1.2,keepalived,apps,源码,https From: https://www.cnblogs.com/wdgde/p/17025869.html