diff --git a/cmd/ocprometheus/Dockerfile b/cmd/ocprometheus/Dockerfile new file mode 100644 index 0000000..e9460ea --- /dev/null +++ b/cmd/ocprometheus/Dockerfile @@ -0,0 +1,13 @@ +# Copyright (c) 2020 Arista Networks, Inc. +# Use of this source code is governed by the Apache License 2.0 +# that can be found in the COPYING file. + +FROM golang:1.13.6 + +RUN mkdir -p /go/src/github.com/aristanetworks/goarista/cmd +WORKDIR /go/src/github.com/aristanetworks/goarista +COPY ./ . +RUN go get -d ./cmd/ocprometheus/... \ + && go install ./cmd/ocprometheus + +ENTRYPOINT ["/go/bin/ocprometheus"]