We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160548d commit 7aa7c51Copy full SHA for 7aa7c51
Dockerfile
@@ -0,0 +1,11 @@
1
+FROM golang:latest as builder
2
+WORKDIR /go/src/github.com/cnosdb/telegraf
3
+COPY . /go/src/github.com/cnosdb/telegraf
4
+RUN go env -w GOPROXY="https://goproxy.cn"
5
+RUN go build -o telegraf ./cmd/telegraf
6
+
7
+FROM ubuntu:latest
8
+COPY --from=builder /go/src/github.com/cnosdb/telegraf/telegraf /usr/bin/
9
+RUN mkdir -p /etc/telegraf/
10
+RUN /usr/bin/telegraf config > /etc/telegraf/telegraf.conf
11
+CMD ["telegraf"]
0 commit comments