Matteo Scandolo | 189526a | 2018-07-13 09:10:23 -0700 | [diff] [blame] | 1 | FROM golang:latest as builder |
2 | RUN mkdir /app | ||||
3 | ADD . /app/ | ||||
4 | WORKDIR /app | ||||
5 | RUN go get github.com/prometheus/client_golang/prometheus | ||||
6 | RUN go get github.com/Shopify/sarama | ||||
7 | RUN CGO_ENABLED=0 GOOS=linux go build -o main . | ||||
8 | |||||
9 | FROM alpine:latest | ||||
10 | WORKDIR /app/ | ||||
11 | COPY --from=builder /app/main . | ||||
12 | ENTRYPOINT ["./main"] | ||||
13 | # CMD ["-broker=voltha-kafka.default.svc.cluster.local:9092", "-topic=voltha.kpis"] |