1.github
https://github.com/prometheus/influxdb_exporter
2.dockerfile
FROM golang:1.17 ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct" COPY influxdb_exporter-0.9.1 /apps/influxdb_exporter-0.9.1 WORKDIR /apps/influxdb_exporter-0.9.1 RUN make build RUN cp /apps/influxdb_exporter-0.9.1/influxdb_exporter-0.9.1 /bin/influxdb_exporter WORKDIR /apps/influxdb_exporter-0.9.1 EXPOSE 9122 ENTRYPOINT [ "/bin/influxdb_exporter" ]
标签:0.9,exporter,apps,influxdb,源码,https From: https://www.cnblogs.com/wdgde/p/16633324.html